Im working on a sidescroller for iOS atm.
The character is ment to walk automatically on the x-axis and has to jump if the player hits the screen.
What i did so far:
I created a player sprite and gave him a platform behaviour. I made a touch event which lets the player jump (platform behaviour preset) if the screen is on touch.
I made another event which sets the character position every 0.1seconds to X= player.X +1 so the character is constantly moving in one direction. I'm pretty happy with that result since i can easily adjust the player speed if i change the addition to the player.X value. but i wanted to ask you guys if there were any better ways to achieve this.? My second thought was to let the character have a bullet behaviour and let it "fly" in the +X direction. Has any of you done something like this? We could exchange experiences .
Secondly i want to generate my levels with a random world ganarator. But my concern is that i want to generate it the same way everytime i start the level. If i understood that right i could set another seed for each level.?
My worlds first attempt was to just make a layout with like 680x3000 resolution and position my obstacles on the map. Is this method bad because of the long render time?
If needed i will upload a capx. As soon as i can.