Destroying objects HELP

adnanadnan Member Posts: 46
edited November -1 in Working with GS (Mac)
hi everyone,

How I make objects be destroyed when shot with a cannon, but not destroyed at once when the they are hit, to be like on angry birds, if you hit the object directly and strong to destroy it but if you hit it bad only to be partly destroyed.

Can this be done?

Thanks for the help :)

Comments

  • UtopianGamesUtopianGames Member Posts: 5,692
    You could use the speed of the cannon to determine the damage or use a hit point system.

    For hit points make a self.integer call it hitPoints and set it to say 5 and do a rule if it overlaps or collides with cannon change attribute self.hitPoints to self.hitPoints -1.

    Then if self.hitPoints is lower than 1 destroy it.

    Darren.

    image
Sign In or Register to comment.