B
Boogery Boogers
Guest
Hello!
I wonder if someone can help clear something up for me. So, here's what I'm trying to do:
I want players to be able to push one another slightly as they walk into each other. each instance has a basic move left/right, and when they collide they push each other back a little in the opposite direction (say for example, with 'instance_place(x,y, enemy_object) x -= "push back value" * image_xscale;').
After some digging around, I believe the order that the instances execute their code is dependent on the order the object is in the resource tree, and the instance order. so which ever instance is older/higher up in the resource tree always gets pushed back first, right?
What I wanna know is, is there a way to make this push back happen for both instances simultaneously without using the "with" statement?
Thanks
I wonder if someone can help clear something up for me. So, here's what I'm trying to do:
I want players to be able to push one another slightly as they walk into each other. each instance has a basic move left/right, and when they collide they push each other back a little in the opposite direction (say for example, with 'instance_place(x,y, enemy_object) x -= "push back value" * image_xscale;').
After some digging around, I believe the order that the instances execute their code is dependent on the order the object is in the resource tree, and the instance order. so which ever instance is older/higher up in the resource tree always gets pushed back first, right?
What I wanna know is, is there a way to make this push back happen for both instances simultaneously without using the "with" statement?
Thanks
Attachments
-
1.5 KB Views: 6