Quantcast
Channel: Questions in topic: "side-scrolling"
Browsing all 99 articles
Browse latest View live
↧

(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 Article


Circular (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 Article


Should 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 Article

How 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 Article

Best 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 Article


Assets/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 Article

error 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 Article

error 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 Article


Assets/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 Article


How 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 Article

Creating 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 Article

minimum 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 Article

Entering 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 Article


How 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 Article


Using 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 Article

Platform 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 Article


Scroll 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 Article

Determine 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 Article

Move 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 Article
Browsing all 99 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>