Multiple Actions/Events for a touch/click

DizkoDizko Member Posts: 498
edited November -1 in Working with GS (Mac)
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?

Comments

  • DizkoDizko Member Posts: 498
    I think so, ha ha. I won't know until I get a chance to give it a try.

    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!
  • DizkoDizko Member Posts: 498
    That worked, thanks again!

    I think I'm starting to get some of this now
  • chrislugerchrisluger Member Posts: 3
    Hey! I'm a total noob. I'm just starting out. Can you break down the steps for me on touching an actor and dragging an actor moving it. Thanks for any assistance I really do appreciate it!
Sign In or Register to comment.