Multiple Hits on a change image

TJMNUTTJMNUT Member Posts: 236
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

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    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
  • TJMNUTTJMNUT Member Posts: 236
    what kind of attribute?
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    integer
  • HadiDaManHadiDaMan Member Posts: 115
    TJMNUT said:
    what kind of attribute?

    umm are you new around here because it seem like u r
Sign In or Register to comment.