newbie question (How Can I??)

Hi Guys,

I am so newbie in gamesalad. My question may be very simple. but I could not do it :(
I create an actor and put this actor 4 different place on scene..
I want, when i click this actor twice (two times) , destroy this actor. -But only clicked actor destroy, not destroy all actor on the scene..
How can i??

PS:Sorry my english, I hope you can understand me :)

Comments

  • ChakkuChakku Member Posts: 1,513
    @lobador

    Put the destroy rule in the actor you want, but BE SURE TO UNLCOK THE LOCK!!!

    Chakku :)
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    While @Chakku 's answer is nice, there is another way to do it without having to unlock the actor. (which could be a hassle near the end of development if you needed to change something)

    See my quick demo below - It's very simple.

    Hope this helps.
  • lobadorlobador Member Posts: 23
    @lobador

    Put the destroy rule in the actor you want, but BE SURE TO UNLCOK THE LOCK!!!

    Chakku :)
    Thank you very much Chakku. I did :)

    i defined 4 atttibutes Live1, Live2, Live3, Live4

    Every actors on the scene change unlocked and for
    first actor if Live1=2 than destroy
    second actor if Live2=2 than destroy
    third actor if Live3=2 than destroy
    4th actor if Live4=2 than destroy

    and it was working..

    is there any more simply way for this?? :):)
  • lobadorlobador Member Posts: 23
    While @Chakku 's answer is nice, there is another way to do it without having to unlock the actor. (which could be a hassle near the end of development if you needed to change something)

    See my quick demo below - It's very simple.

    Hope this helps.
    Thank you so much Braydon_SFX..
    it is perfect :)
  • PaxPaxPaxPax Member Posts: 106
    edited January 2013
    wrong post
  • ashtmjashtmj Member, PRO Posts: 405
    add a integer attribute within your actor called "HP"

    set it to 2

    1st rule:

    If touch is pressed

    change self.attribute HP to self.attribute HP -1

    2nd rule :

    if self.attribute HP =< 0

    Destroy actor
Sign In or Register to comment.