toggle menu
Categories
Discussions
Dashboard
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Dashboard
Sign In
·
Register
×
Home
›
GameSalad 101
›
Working with GS (Mac)
Multiple Hits on a change image
TJMNUT
Member
Posts:
236
May 2011
edited November -1
in
Working with GS (Mac)
In my game, I want it so when an actor collides with something, it changes its image. How can I get the changed image to change its image?
Comments
JohnPapiomitis
Member
Posts:
6,256
May 2011
make a self attribute called hitcount
in the actor have a rule when actor collides with whatever you want to change the image, change hitcount to hitcount+1
then have a rule when attribute hit count =1 change image to whatever
whet attribute hit count=2 change image to whatever
and so on
TJMNUT
Member
Posts:
236
May 2011
what kind of attribute?
JohnPapiomitis
Member
Posts:
6,256
May 2011
integer
HadiDaMan
Member
Posts:
115
May 2011
TJMNUT
said
:
what kind of attribute?
umm are you new around here because it seem like u r
Sign In
or
Register
to comment.
Comments
in the actor have a rule when actor collides with whatever you want to change the image, change hitcount to hitcount+1
then have a rule when attribute hit count =1 change image to whatever
whet attribute hit count=2 change image to whatever
and so on