newbie question (How Can I??)
lobador
Member Posts: 23
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
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
Put the destroy rule in the actor you want, but BE SURE TO UNLCOK THE LOCK!!!
Chakku
See my quick demo below - It's very simple.
Hope this helps.
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
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?? :)
it is perfect
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