Multiple Actions/Events for a touch/click
Dizko
Member Posts: 498
Hello!
I'm just getting started with Game Salad, and I'm learning as I go so I'm sure you'll be seeing a lot of me around these parts!
Anyway, I'm working on a proof of concept but I'm getting hung up on a couple things.
I need to be able to click and drag an actor and also be able to touch the actor to active said actors ability. For example, press and drag to move the actor, a tap to start its ability.
So far I've been able to get the click and drag action to work, however getting the actor to respond to a tap has been tricky. Everything I've tried so far has either caused the actor to activate upon any touch, or not work at all.
I thought about potentially recording the time of the touch that way I could determine if it was a tap or not and fire off the function that way, but I have been unable to figure out how to record that to an attribute.
I guess what it boils down to is that I need an on/off switch that I can move.
Any thoughts?
I'm just getting started with Game Salad, and I'm learning as I go so I'm sure you'll be seeing a lot of me around these parts!
Anyway, I'm working on a proof of concept but I'm getting hung up on a couple things.
I need to be able to click and drag an actor and also be able to touch the actor to active said actors ability. For example, press and drag to move the actor, a tap to start its ability.
So far I've been able to get the click and drag action to work, however getting the actor to respond to a tap has been tricky. Everything I've tried so far has either caused the actor to activate upon any touch, or not work at all.
I thought about potentially recording the time of the touch that way I could determine if it was a tap or not and fire off the function that way, but I have been unable to figure out how to record that to an attribute.
I guess what it boils down to is that I need an on/off switch that I can move.
Any thoughts?
Comments
Thanks for the quick response!
If I understand it correctly, basically what is supposed to happen is that when I touch and then move it won't do anything but move. Because where I touched isn't equal to where I released?
But if I touch and release, and my release is equal to where I touched it, the action will fire off?
Thanks again!
I think I'm starting to get some of this now