Yes, simple. But I don't know it.... Anyways, How do you make the sprites move smoothly using... 'Trigger_Delay' Thank you.
Forum
 
  CS2D
 CS2D  Maps/Editor
 
Maps/Editor  Moving sprites
 Moving sprites Moving sprites
 Moving sprites
2 replies 
  1
 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.
 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:
 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.
 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
 Use Lua map scripts and  image instead of
 image instead of  env_sprite.
 env_sprite.  image has tween commands like
 image has tween commands like  tween_move which do exactly what you want.
 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
 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.
 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
 sprites: A, B, C, D ..., all hidden at start except for A delays: 1, 2, 3, 4, ...
 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)
 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
 2 triggers B, C and 3 3 triggers C, D and 4
 3 triggers C, D and 4 and so on
 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.
 trigger_delay is currently restricted to second precision so it won't be smooth.  
  1
 1  
 
 Offline
 Offline