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
Happy Thursday Everyone, This week's new music tr[…]
Peut être un bug de GDevelop, supprime les objets […]
Another really nice project, with the graphics as[…]
The most simple way is to store the info in a file[…]
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[…]
The donation page seems to be down. All I could fi[…]
c'est vraiment une bonne base pour débuter!!!
Well done :) I would like to see it get reviewed […]
Yes, Thank you very much of the solution! My probl[…]