2d_warrior
Member
I need objects with different scales to move at the same speed off-screen, but change speed and position so that later the horizontal center of their sprites line up in the middle of the screen if the objects were placed at the same x coordinate in the Room Editor. Creating parallax, but allowing things to be placed so they come at predictable times that you can them line up without parallax changing the timing. The game only scrolls forward, never backward.
I think this is how it could work in principle below, but I can't figure out the programming formula.
Sprites
-different sizes(move at same speed on screen)
-horizontal centered images because it probably makes screen centering easier
-largest sprite might be screen sized at scale of 1, smallest might be 32*32 at scale of 1
Objects
-different scales(move at different speed onscreen)
-a scale of 1 would not jump at all it's properly aligned by definition
-probably scales of 1,0.75,0.5,0.25 would be common, but I'd like it to do any scale
-each jumping position once when approaching the screen
if a smaller scale to catch up before they go slower
to meet at the horizontal center of the screen
-probably means a sprite with smaller scale jumps
greater distance toward screen border when it is
further away from it than sprite with greater scale
Scrolling Speed
-changeable in game
-when block start moving at different speeds their speed would be scale*scroll_speed
I'm sure this would work in principle, but I can't seem to nail the formula programming.
I think this is how it could work in principle below, but I can't figure out the programming formula.
Sprites
-different sizes(move at same speed on screen)
-horizontal centered images because it probably makes screen centering easier
-largest sprite might be screen sized at scale of 1, smallest might be 32*32 at scale of 1
Objects
-different scales(move at different speed onscreen)
-a scale of 1 would not jump at all it's properly aligned by definition
-probably scales of 1,0.75,0.5,0.25 would be common, but I'd like it to do any scale
-each jumping position once when approaching the screen
if a smaller scale to catch up before they go slower
to meet at the horizontal center of the screen
-probably means a sprite with smaller scale jumps
greater distance toward screen border when it is
further away from it than sprite with greater scale
Scrolling Speed
-changeable in game
-when block start moving at different speeds their speed would be scale*scroll_speed
I'm sure this would work in principle, but I can't seem to nail the formula programming.