This is my event:
How can I loop it so that goes from Origin to Destination back to Origin, and so on?
I know the variables work, because if I only use one of those, the object travels from it's current position to the variable coordinates.
Wendigo wrote:You could also use the "Lerp" expression (linear interpolation) for movement between two points. Unfortunately the description of the function doesn't tell very much. It takes three arguments:
1. Start point
2. End point
3. Percentage between the two points (0.0 - 1.0 where 0.5 is right in the middle between the two points)
Should be easier to calculate than using forces.
I can't find any movement/position conditions that take those three arguments
Lizard-13 wrote:I have an example here using the lerp function to move back and forward between two points:
Hope it helps
Thanks!! I have 2 players coop working on lan and […]
Very good! All sounds (music, voice) are great an[…]
Humblebundle currently has a pay what you want web[…]
Ah I see, thanks for info.
Good point about the title screen, I might make th[…]
Thank you for your answers MeX1Co and ddabrahim. […]
Happy Thursday Everyone, This week's new music tr[…]
Peut être un bug de GDevelop, supprime les objets […]
salut, je me suis penché un peu plus sur ton probl[…]
Bonjour/Bonsoir, j'aimerais faire une interface do[…]
Hi I've found ! In main function (file index.html[…]
Happy Tuesday everyone, I've uploaded a bunch of […]
This version is difficult to use To be honest I'[…]
Salut Comment on se sert du Basic XML dans GD5 ? […]
Good, have you considered some kind of antispam me[…]
Hello ! Les modérateurs font face à pas mal de sp[…]
Il s'agit de l'antialiasing. Quelqu'un pourrait […]
Je me suis retrouvé confronté à quelques problèmes[…]
Bon j'ai réussi en bricolant ! (pour mettre dans r[…]
scratch that... I found the problem... since it is[…]