Move Speed on a looping Background
i want my background scroll speed to to go higher and higher with time and i also want some other game object which are being instantiated on top the background to instantiate according to scroll speed,so that when scroll speed is higher there will not be space in between the game objects which are being instantiated on top of the background. I to increase time i can have a min and a max value and increase between them but how would i make the object which are being instantiated to follow them . i hope i explained well enough to someone to understand. private Rigidbody2D rig2d;
// Use this for initialization
void Start () {
rig2d = GetComponent<Rigidbody2D>();
rig2d.velocity = new Vector2(GameController.instance.scrollSpeed, 0);
}
maybe like if scrollspeed is > 0.5 increase the spawn speed to 0.5 as well . can someone help plxx
Your answer
Follow this Question
Related Questions
How can I isolate just the character to slow down 0 Answers
come implemento il touch con il void mouseover? 0 Answers
Sprite Bug when move 1 Answer
High-score Saving Issue 2 Answers