Yes, simple. But I don't know it.... Anyways, How do you make the sprites move smoothly using... 'Trigger_Delay' Thank you.
Forum
Maps/Editor
Moving sprites
Moving sprites
2 replies
1

Yes, simple. But I don't know it.... Anyways, How do you make the sprites move smoothly using... 'Trigger_Delay' Thank you.
env_sprite, changing its Rotation speed value and trigger it with Trigger_Delay.
GeoB99's answer is a bit confusing because he didn't go much into detail... so:The short answer is: You can't do that.
env_sprite entities are not designed to be moved at all during runtime.There are two ways to achieve what you want to do:
Use Lua map scripts and
image instead of
env_sprite.
image has tween commands like
tween_move which do exactly what you want.
If you REALLY don't want to use Lua you can use an ugly fallback solution with entities and triggering only but this one is a ton of annoying work (clearly not recommended): Create X env sprite entities with the same image and move every one a little bit further. Hide them all at start. Now you have to trigger them in a row with a ton of
trigger_delay so that only one is shown at a time.e.g.:
sprites: A, B, C, D ..., all hidden at start except for A
delays: 1, 2, 3, 4, ...
trigger delay 1 to start fake movement. It triggers A, B and 2 (hides A, shows B and triggers next step)
2 triggers B, C and 3
3 triggers C, D and 4
and so onThis way you create the illusion of movement. But:
trigger_delay is currently restricted to second precision so it won't be smooth.
1

Offline