Help with collisions
![networ](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
Hi, I'm trying to solve this problem for a long time, but with no success....
I have 2 actors called "stone" and "ice".. I need they can access to scene attributes, so I need put them to game and unlock it. If actor "stone" falled on actor "ice" they have to destroy it...
So I do this:
If actor ice collide with actor stone
and stone.position.Y> ice.position then do something....
It works great....
But my problem is if I i put 2 stones to game and one stone is higher than another and actor "ice" collide with "stone" (collide on sides - not higher position of stone)
My rule won't work:
If actor ice collide with actor stone
and stone.position.Y> ice.position then do something....
Because one stone us higher than another... How to solve this? ("stones" are all one prototype, which I drag to scene and then add different behaviours...)
Thanks for help. I hope you can understand my problem
.
I have 2 actors called "stone" and "ice".. I need they can access to scene attributes, so I need put them to game and unlock it. If actor "stone" falled on actor "ice" they have to destroy it...
So I do this:
If actor ice collide with actor stone
and stone.position.Y> ice.position then do something....
It works great....
But my problem is if I i put 2 stones to game and one stone is higher than another and actor "ice" collide with "stone" (collide on sides - not higher position of stone)
My rule won't work:
If actor ice collide with actor stone
and stone.position.Y> ice.position then do something....
Because one stone us higher than another... How to solve this? ("stones" are all one prototype, which I drag to scene and then add different behaviours...)
Thanks for help. I hope you can understand my problem
![;) ;)](http://forums.gamesalad.com/plugins/emojiextender/emoji/twitter/wink.png)
Comments
If actor ice collide with actor stone1
and stone1.position.Y> ice.position then do something
if actor ice collide with actor stone2
and stone2.position.Y> ice.position then do something