I am making top down rpg and I have question
How do I stop the animation of the player when colliding?
For example in rpg maker when the player is colliding with an object the animation stops but when you move sideways the animation still plays.
I am making top down rpg and I have question
How do I stop the animation of the player when colliding?
For example in rpg maker when the player is colliding with an object the animation stops but when you move sideways the animation still plays.
Can you screen shot the events?
WHAT I WANT:
You can see the animation stops when is colliding with the mountains but when i move sideways it reproduces the animation
Sorry, I’m not exactly sure what to look for in the gif. Can you retry it and just have the issue showing, where it doesn’t collide with the mountain?
And what do you mean by “it reproduces the animation”?
you can see in here the animation still plays even though the player is colliding with the desks
Are any keypresses occurring while the animation is playing even though the character is colliding with the desk?
And does the boolean variable cinema changed anywhere?
You name properly animations of your object
You add variable to your object in my case i called mine Direction
You add to your object top down behavior and remap for top down behavior
Now you set Direction variable to whatever angle your object is moving just like i did
And last two events shows how to use that info to animate your object based on if its moving or not
So if its colliding with wall and going against the wall it will not go into move animation since object is not moving
BUT if you are colliding with wall and you are moving along side it then it will go into moving animation
BTW variable needs to be text variable
And change animation action is change by NAME
NOT number
How do I detect if the player is going against a wall?
Add condition
Click on your player
In center search bar on top type colli
Pick action called in collision
And in 2nd object pick wall