Two 'Things' controlled by the same touch position??

theJudoguytheJudoguy Member Posts: 7
edited August 2014 in Working with GS (Mac)

I'm still relatively new to game salad and have often found problems which I could simply fix when watching tutorials but this wasn't really covered.

Here's the problem, I am creating a pool type game whereby i have a power bar (which you can slide up and down to increase/decrease power) and i also have my cue rotating around the white ball, both in accordance to the touch position. Unfortunately these two are changed by the same thing: touch position, meaning if someone tries changing say the power the rotation of the cue would also change. :( How can I make it so that the the player can change one of the two things without affecting the other??

It's probably very easy but as i said I'm very new! :)

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    You can do this by using "states." The idea is that when game.state=1, only the power actor can be altered and when game.state=2, only the cue can be altered. Does that make sense?

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • theJudoguytheJudoguy Member Posts: 7

    Yeah that makes sense - how would you change between the two states?

Sign In or Register to comment.