Help with Rotating an Actor

Hi Guys! I am new to Gamesalad so this is prolly a newbie question, but I am having an issue with trying to get a virtual on screen button to rotate another actor. I set up a real attribute for the game that is tied to the Block rotation that I want to rotate. I figure I need to use a "Change Attribute" on the on-screen virtual button actor, but unsure of how exactly to set this up. Any help would be appreciated, thanks!

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    To communicate between actors, you can use a game attribute.

    Here's one way to do this:

    Button actor
    When touch is pressed
    .....Change Attribute game.pressing (boolean) to true
    .....Otherwise
    ..........Change Attribute game.pressing to false

    Block actor
    When attribute game.pressing = true
    .....Rotate direction: [clockwise or counter-clockwise] speed: [some number]

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

Sign In or Register to comment.