GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

How to lock an actor?

FungoEntertainmentFungoEntertainment Posts: 36Member
edited 4:11AM 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 Posts: 4,172Member
    If touch is pressed

    _________

    Otherwise: Stuff you want it to do.
  • FungoEntertainmentFungoEntertainment Posts: 36Member
    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 Posts: 4,172Member
    Create a game attribute

    Boolean: Locked

    If Locked = True
    Door closed
    Else: door open
This discussion has been closed.