Collision side?
Posted:
Thu May 11, 2006 10:27 am
by DilloDude
I'm wondering, is there a way to find the side of the acto you are colliding with inside the event? I already have two collision events: top side and any side. But in any side, I want a way to find if the side was left, right or bottom (not the top). Is there currently any way to do this? Because I don't want to add another two collision events.
Posted:
Thu May 11, 2006 12:47 pm
by makslane
Test the direction between event actor and collide actor:
double dir = direction(x, y, collide.x, collide.y);
More:
http://game-editor.com/forum/viewtopic.php?t=1797
http://www.game-editor.com/docs/script_ ... #direction
Posted:
Fri May 12, 2006 7:54 am
by DilloDude
Good Idea!
Though it wouldn't work on tiles...
But most of the things I need if for aren't tiles.