How to make screen move
How can I make the screen move in a simple 2d ios game, where you mustnt move lift your finger, basically like mmm fingers for ios. thanks!
Could you be a little more explainitive? I am not really sure what you are asking.
i would basically make a floor, with a flying perspective, (or if there is a better way correct me anywhere), but i would do so, where if you played mmm fingers!, you keep holding your finger, where the point is to dodge obstacles that come from the top of the screen. It would be a much similar ios game. Thank you in advance, if you could explain step by step, id be very glad!
Answer by Ejpj123 · Apr 18, 2016 at 02:12 AM
Here is how to make the screen to go up:
using UnityEngine; using System.Collections;
public class movedown : MonoBehaviour {
float speed = 10.0f;
void Update ()
{
transform.Translate (Vector2.up * speed * Time.deltaTime);
}
}
And here is a link to make the finger on touch screen:
http://code.tutsplus.com/tutorials/create-a-fruit-ninja-inspired-game-with-unity--cms-22145
Only go to the part where you touch the screen.
Good Luck!