The character moves towards the object when clicked

1 favourites
  • 7 posts
From the Asset Store
This is a code so you can see the same skin on all screens (peers). Each peer gets a skin, in addition to 4 directions t
  • 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'

  • 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

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)