Login | Register

Universal collision

October 16, 2006, 21:33 by Calle
[loading]
-->
<b>Question:</b> is there a way to make a universal collision event?

<b>Answer:</b> This is a very intresting question. Basically you want to manipulate an event? Very intresting. Obviously, you can't manipulate events... which means we will have to find another way. I propose:

if position_meeting(x,y,all) {
inst = instance_place(x,y,all);
// We now know that we are colliding with instance inst
}


Place in step event.

Comments

Loading comments... [loading]
.
Users logged in:

game maker articles, game maker examples, game maker tutorials, gmtutorials, game maker questions and answers, game maker crash course, how to create games