Endless with non movable actors
Dues
Member Posts: 1,159
Hey guys,
What would be the best way to do an endless (lets say jumping) game where the platforms need to be non movable?
Im trying to interpolate their positions, but cant get it to synch with the jumping properly.
Comments
I found this tutorial for you
gamesalad-endless-runner
Hope it's work
my apps:
https://itunes.apple.com/us/artist/firas-alhasnawi/id1015468746
Thanks for the link @ffatop. But I'm thinking since @Dues wants the platforms to be non-moveable the tutorial below might work better.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
The way I learned to build endless runners was to make a scene say 10000px wide "or whatever" and then move the camera across the scene with actor in tow and when actor reaches say 9000px have a trigger that sets all actors/camera back 9000px, and it will loop over and over and this way you can set all platforms/actors to non-movable.
It can get complicated but works very well.
You should be fine spawning actors and then interpolating them over.
You record the start position of the actor when it's spawned, then divide that by the speed you want it to travel to get the duration of the movement.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
Thank you very much for the demo! @Armelline
And thanks for the suggestions @BBEnk @jamie_c @ffatop