Swipe not working

I set up swipe to when you swipe down change an attribute to true but when you click it activates it.
I said
When touch is pressed log the cords of it when touch is released log the cords of it. Then when game.pressed is > game.released activate attribute to true. Please help me to fix it goes of when you click thanks

Best Answer

  • ArmellineArmelline Posts: 5,370
    Accepted Answer
    So you need to swipe down, and then click on the actor in order to activate it?

    Exactly what you intend will change the method used to do it a fair bit. Attached is a basic "if the user has swiped down on the actor, and then touches it, display text for the duration of the touch".

    If you want this to be a repeated use "switch", then you'll need to reset the SwipeValue when the actor is "activated". If you want the display text (or whatever the actor does) to be a permanent change, you'll need an extra attribute in there.

    There are tons of things that would affect just how you do it, but hopefully this gives you a reasonable idea. The more detail you give, though, the more help we can give :D

Answers

Sign In or Register to comment.