Let's say you take the autorunner template and you want to add enemies and guns and stuff that moves around alot. Oh, and the speed of the autorun changes, and the camera scrolls to the player...
Am I correct in thinking you'll have to base every bit of movement on the bullet speed of the background to get it to look right?
Anyone know of some crazy tweaked autorunner examples I could look at?
Mine's actually a vertical driving game. you can drive left and right farther than the viewport width, the camera follows your car around, you can speed up and slow down, so the background bullet is going all over the place.
I've managed to get a lot of it working, but the math is exploding my head.
(ex. traffic that goes backwards if you're going faster than it, and forwards if you're not, goes right when you go left, etc..)
I've got every bit of movement using some crazy formula based on the background's bullet speed and angle. Am I missing some obvious concept and making things way too hard?
Is there some other way to get these things to move around correctly or do I just keep exploding my head?
Trying to make bullets you can shoot is the headache that finally inspired my cry for help...