Leapfrog background set pieces as camera scrolls?
I'm am extremely new to coding and am not sure how to go about doing this. I'm working on a side scrolling runner of my own. I have done the unity runner tutorial module and tried to get it to work for...
View Article(2d) Enemy not killing player if player stand still?
Just learning and I have followed some tutorials and am just tyring to get basic mechanics of a 2D game going. I use Uscript ( Visual Scripting Tool ) so I will just have to explain what my code is. My...
View ArticleCircular (Inside cylinder) World for 2d Platformer
I'm wondering what would be the best way to have a 2.5D side-scrolling platformer play out on the inside of a cylinder. So in a simple example, the character would be able to run all the way around the...
View ArticleShould I move the character and camera or the platforms?
So, I'm a total Unity noob and pretty much a game dev noob. For my first project, I'm creating a 2D infinite runner. I may never end up releasing it, but if I do it'll be on mobile as the primary...
View ArticleHow to remove gravity when click
So I have this script in which when I click the gravity turns -1 and it stays that way until I click again, but I want the gravity to go back to normal the moment my click ends. Just like flappy birds....
View ArticleBest Way to Do a 2d Side Scroller with Infinite ?
Hi i am making a 2d side scroller game.I have done finite game previously but how to do a infinite side scroller.Any help ? I have gone through some answers and found that we need to instantiate...
View ArticleAssets/Scripts/PlayerController.cs(32,49): error CS0126: An object of a type...
Can someone please tell me what this means? using UnityEngine; using System.Collections; [RequireComponent(typeof(PlayerPhysics))] public class PlayerController : MonoBehaviour { public float speed =...
View Articleerror CS0664: Literal of type double cannot be implicitly converted to type...
Can anybody please tell me what this error means? Well here is my script. Please correct any other mistakes I made. using UnityEngine; using System.Collections;...
View Articleerror CS1061: Type `PlayerPhysics' does not contain a definition for `Move'...
What the heck is this? What kind of error asks me a question?(rhetorical) well here is my script. using UnityEngine; using System.Collections; [RequireComponent(typeof(PlayerPhysics))] public class...
View ArticleAssets/Standard Assets (Mobile)/Scripts/SidescrollControl.js(33,18): BCE0020:...
****I have a problem saving my script this is the part of the error might help me?** **error:** "Assets/Standard Assets (Mobile)/Scripts/SidescrollControl.js(33,18): BCE0020: An instance of type...
View ArticleHow can I get the velocity of an object in relation to the world?
All I can find are local velocity questions. Well I've been using transform.InverseTransformDirection(rigidbody.velocity); in my player's script to make my camera adjust its speeds according to the...
View ArticleCreating An "Attribute" Mechanic?
I am making a 2D, side-scrolling game. I want to attach a script to my player object. I want to create an array of "attributes" like sick, healthy, or strong for example. Each attribute would have a...
View Articleminimum and maximum position for sides of a camera
I am making a side scrolling game and would like to set minimum and maximum x and y values for the main camera. The camera is positioned at the player if it is inside the range otherwise it is...
View ArticleEntering 2D Buildings?
Hello, I'm trying my hand at a 2D side-scrolling/platformer action rpg in Unity2D (I know, I know), and I was wondering what's the best way to deal with buildings in 2D. I find entering buildings easy...
View ArticleHow to make one restart screen for an entire game
I have a separate restart screen with a restart button and a quit button, I want to make it so that the restart button just reloads the last played level and I want to be able to do this for every...
View Article(Help) Pick up item animates to point and becomes a platform
Hey Everyone! I am trying to script a interesting game design element into a game I am working on. It's rather simple really. I would like my player to touch and activate an item in the environment....
View ArticleUsing a MeshCollider for a tile-based 2d sidescroller terrain collisions
I've been working on a 2D engine similar to Terraria's, I have chunks composed of a set amount of blocks and render them using a single mesh for better performance. My problem is that I'm having a hard...
View ArticlePlatform color to kill player if player does not match
Hi, I am just starting out with Unity and C# and have actually been making pretty good progress, but a game mechanic I want to introduce is giving me problems. It is important as I wish to use it quite...
View ArticleScroll Bar on a GUI Box?
Hello, I'm looking for a way to add a scroll bar onto a box in my GUI. Here is my box: function OnGUI () { GUI.Box (Rect ((Screen.width/12),(Screen.height/12),(Screen.width -...
View ArticleDetermine if GameObject with no renderer is within Orthographic camera bounds
I have a 2D sidescrolling game that is pseudo randomly generated. It reads in "rooms" which are 10x10 tile segments. I have a GameObject Room which basically manages all the tiles, which are 2D...
View ArticleMove forward + allow to step sideways.
This is likely an easy one. I can see the issue but am unsure what the most efficient way to fix it would be. I am basically making an endless run type prototype. I have the player moving forward on...
View ArticleSide scrolling menu
Any resource or help is available for creating this type of side scrolling menu. Please give me some tips for creating this type menu. ![alt text][1] [1]:...
View ArticleFallout shelter interface
how would you make a game like fallout shelter, where you dont have a main character, just characters that you click on and assign them stuff?
View ArticleWhat size should i have my atlas if im trying to do a game for pc xbox and ps?
Alright here is my question... I'm doing (or trying to do) a 2.5d side scrolling platformer, im targeting pc users and hopefully xbox one or ps4. My biggest inspiration is Ori and the Blind Forest, i...
View ArticleGetting the camera to scroll when the player hits the edge of the screen?
Hi, Im fairly new to Unity and Im just trying out a few camera set-ups for a 3d side scrolling type game. What I would like to do with the camera is have it scroll ahead a set amount when the player...
View ArticleReally need some help with my bullets firing opposite and not following...
Hi, I've posted this before. I have a script that shoots my bullets backwards (please look at attached GIF to see what happens). I think it's because transform.forward is meant to be used in...
View ArticleEnemy AI problems
I've been looking for a solution to this for a while, but most solutions don't have what I'm looking for. I'm trying to make a side-scrolling brawler, but I can't seem to find a way to make the enemy...
View ArticleScrolling Repeated Background - background is scrolling but not repeating
Hello, I looked over [this][1] tutorial to apply to my game (also a 2D side scroller). I pretty much copied the scripts exactly, but modified them slightly to fit my code. The backgrounds are...
View ArticleWhy is my Player slowing down between two Tilemap Colliders?
Hi Guys, I am currently working on a 2D sidescrolling action game - I've come pretty far, but i am currently stuck at a strange problem. When the player crouches I am **changing** from a...
View ArticleScrolling Effect with Multiple Objects,Infinite Side Scrolling with Multiple...
So I have a script that changes a specific material's x element of the offset value in order to get a endless scrolling effect. I use this script for background and for some other object. This is fine...
View Article