So simple... please help

johnnysinjohnnysin Member Posts: 1
edited November -1 in Working with GS (Mac)
What i'd like to do is very simple:

you have an actor
first time you click it - changes image
second time - changes to another image
third time - destroy

it's a speech balloon. for some reason i can't get past the first click!
How am i supposed to put the rules and attributes and all that?

Comments

  • jb15jb15 Member Posts: 602
    You're using variables, (real numbers) right?
  • PhoticsPhotics Member Posts: 4,172
    Add a counter attribute (real or integer) in the actor

    self.clicks

    If touch is pressed change clicks to clicks+1

    If click = 1
    image 1

    If click = 2
    image 2

    If click > 2
    Destroy
  • RedlerTechRedlerTech Member Posts: 1,583
    Make an attribute, click count.
    Whenever screen is pressed change click count to click count + 1. When click count = 1, change image, when = 2, change another imge, when = 3, destroy. Does that help?
Sign In or Register to comment.