Hello.
I learn progressively the game logic of GDevelop for a few weeks.
In my sandbox game, I’m trying to bring a panel from the right to the center of my screen, when I click on the “About” button. (this button appears when Start ! is clicked)
As you can see in the screenshots, I thought about stopping the moment at position X 128. Y is already where I want.
Instead, both objects continue moving forward. They don’t stop.
I’m sure there are other methods of producing this and I’m open to that. But I want to understand why the object doesn’t stop.
the problem is that you set a specific position x = 128. Force is moving the object by frame and it is very unlikely (although not impossible) that it is moved exactly to x = 128 in the process (x = 127.9999999999 would already not work). You can easily solve this by choosing the “less or equal to” operator. This means that the object stops always at a - maybe not visibly - different position.
For a more precise movement you could use the tween behavior instead. This will move your object to the exact position.