Hello Corona, I want to start making a racing game where you have to use the accelerometer to tilt if backwards or forwards and have a gas and break button but my question is, how would I be able to make an entire background world so they start at the beginning of the scene and as they drive on, there will be hills and jumps they have to make so how would i be able to make a long background scene and have the actors camera follow the truck? [import]uid: 122076 topic_id: 21412 reply_id: 321412[/import]
i need this too
[import]uid: 86275 topic_id: 21412 reply_id: 84860[/import]
You would probably use a scrolling background and then spawn hills/jumps/etc that move downward (so they appear to get closer to the player) and eventually meet with the player.
You could adjust how fast the background moves based on accelerometer.
Peach
[import]uid: 52491 topic_id: 21412 reply_id: 84896[/import]
ok, i got the scrolling background down but how would I be able to make it spawn hills and jumps and if theres a jump and they dont make it, the die, if you could point me to any tutorials, it would be greatly appreciated [import]uid: 122076 topic_id: 21412 reply_id: 85037[/import]
There aren’t any tutorials for this specific type of thing I’m afraid.
You would next want to spawn a hill/jump at the top of the screen, or just outside it, at say y=-50, then move the hill/jump down the screen - when it reaches the car then you’d react.
Peach
[import]uid: 52491 topic_id: 21412 reply_id: 85122[/import]