How to lock an actor?

FungoEntertainmentFungoEntertainment Member Posts: 36
edited November -1 in Working with GS (Mac)
Hi. Is there a way to lock an actor, so when I click on it it doesn't respond as it would, for example spawn something etc? Please help. me, it would be appreciated!

Thanks!

Comments

  • PhoticsPhotics Member Posts: 4,172
    If touch is pressed

    _________

    Otherwise: Stuff you want it to do.
  • FungoEntertainmentFungoEntertainment Member Posts: 36
    Thanks, but that just isn't clear to me, Hehe.. I want to make an actor lockable and unlockable. I made a game where you purchase cannons. When you collect enough coins the tower becomes unlocked. If you spend the coins on sth else, it becomes locked. Get it?
  • PhoticsPhotics Member Posts: 4,172
    Create a game attribute

    Boolean: Locked

    If Locked = True
    Door closed
    Else: door open
Sign In or Register to comment.