need help please
anyone knows how to do this or have a template similar ? i really need help please
http://odesigncommunication.com/gs/point3.jpg
http://odesigncommunication.com/gs/point3.jpg
Best Answer
-
JohnPapiomitis Posts: 6,256
Make an attribute called hit(boolean) and one called score(interger)
when ball collides with actor1
-change attribute hit to true
In your spawn box have a rule when hit=true
-spawn actor
-change attribute score to score+1
-change attribute hit to false
make sure the change attribute hit to false is the last behavior in that rule
Answers
Thanks a lot but 1 question, can you explain me again about the last part:
In your spawn box have a rule when hit=true
-spawn actor
-change attribute score to score+1
-change attribute hit to false
Sorry for asking but how do you make the rule to hit=true?
I mean, i had >> create rule >> and then ?
and these 3 ?
-spawn actor
-change attribute score to score+1
-change attribute hit to false
sorry you lose me on that last part, can you explain me exactly how you do it ? (sorry, i am starting)
change attribute hit to true
You should check out the gamesalad cookbook at the link at top, and the tutorial videos at gshelper.com and the gamesalad cookbook youtube channel.
Seems like you still have to learn the basics and the way gamesalad works. Setting up rule conditions and the way you set up behaviors are stuff youll have to learn before you can do anything else.
cheers
and last issue is the actor 2 didn't disappear once the ball touch it but i did what you said, am i missing something, can't i just had a destroy instead ?
after, it will be 100% perfect for your explanation !! thanks in advance!