I'm creating a game and made the character move by clicking. When you click on other objects that are on other layers, it moves there, how can I make it so that it stays in place and does not move towards the object?
With object clicked you can specify the object. If you use 'any click' then you can add another condition 'cursor is over object' to specify when the user should move. If that doesn't work then we need more specific info about the game.
I apologize, I didn’t click with the mouse, but with the touch.
When I tap on an object, it starts walking towards it, but I want the object to remain in place.
Touch is the same you can specify which object is touched rather than a general 'on touch'
Develop games in your browser. Powerful, performant & highly capable.
I have quests on the layer "UI" I did this: "On Tap Gesture On 'Object'
But for some reason the player keeps moving towards him
I have quests on the layer "UI" I did this: "On Tap Gesture On 'Object' But for some reason the player keeps moving towards him
Your move conditions are out on their own running every tick, it will always move to somewhere. You need better conditions, maybe you want to add a variable=1 for movement to the move conditions, and if you touch an object you should move to then set this variable to 1, and for ones you don't want to move to the variable would remain at 0 and not move.