toggle menu
Categories
Discussions
Dashboard
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Dashboard
Sign In
·
Register
×
Home
›
GameSalad 101
›
Working with GS (Mac)
detecting number of collisions
as7494
Member
Posts:
70
December 2010
edited November -1
in
Working with GS (Mac)
how is it possible to detect the number of collisions between two actors?
Comments
expired_012
Member
Posts:
1,802
December 2010
Make a global integer attr. named collision count
Rule
When actor 1 collides with actor 2
Change Att. Game.collisioncount to game.collisioncount +1
as7494
Member
Posts:
70
December 2010
how would i remove a collision from the integer? i tried using the otherwise part of the rule however that doesnt work?
Sign In
or
Register
to comment.
Comments
Rule
When actor 1 collides with actor 2
Change Att. Game.collisioncount to game.collisioncount +1