toggle menu
Categories
Discussions
Dashboard
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Dashboard
Sign In
·
Register
×
Home
›
GameSalad 101
›
Working with GS (Mac)
A way to say NOT colliding with?
theCodeMonsters
Member
Posts:
359
September 2011
edited November -1
in
Working with GS (Mac)
Hey guys any Idea on how to say if an object is not colliding with another object do this?
Comments
ARandomDay
Member, PRO
Posts:
124
September 2011
Assign a boolean attribute to everything that your using as an object...
So if your main object isnt touching something else the game.attribute is false (0) and if it touches game.attribute = true (1)
That way you can assign your main object if game.attribute = 0 (aka not touching)
JohnPapiomitis
Member
Posts:
6,256
September 2011
use the otherwise section. So you make a rule when objects cololiding with whatever, whatever you want to happen when there not colliding put in the otehrwsie section of that rule
Sign In
or
Register
to comment.
Comments
So if your main object isnt touching something else the game.attribute is false (0) and if it touches game.attribute = true (1)
That way you can assign your main object if game.attribute = 0 (aka not touching)