Hello,
I’m creating a boss for my game where his hands try to hit the player. The problem is, when his hands hit the floor they don’t come back to the initial position correctly. It depends where it hits the ground. I’m using the action: Add a force to move toward a position.
I created an example:
Events
Result:
Scene
Preview

Hi! Have you tried using the Tween behavior?? It has functions to move an object to a position, then come back to the initial position!
1 Like
Hello, Maleddict!
It’s true I haven’t tried the tween yet. I’ll try, but now I’m curious to know why the movement I created doesn’t go to the exact position…
If the tween works well I will answer again here on the forum. Thanks!
1 Like
I dont have the answer for that, but in my experience with those actions you are using, I think that they dont go to a exact pos, they just use the position to travel a distance, so they land on the nearest spot (not always the same landing spot). But Tween can go to an exact position. I hope it helps, as I am just a beginner.
The other thing im thinking that can help is that you can use the Object points to make it even more exact for where you want the objects to be… Maybe some points are not behaving the way you want them?
1 Like
I think it’s something like this. I just changed the center point of the object to be the same as the origin point and now it’s moving perfectly. I believe the action “Add a force to move toward position” calculates the position of the object using the center point instead the origin point.
Thanks, Maleddict! And I won’t rule out the use of tween… it has interesting effects…
1 Like