I am making a platform game and whenever player is stuck inside floor, game automatically pushes him out using move_outside_solid(). Now the same thing does not work with obj_ledge because it does not function correctly as a solid.
So I would like someone to create a script that pushes something out of something else in a certain direction with a max distance.
it would look like:
move_outside_object(dir,maxdist,obj)
[WANT]move_outside_solid/all to a specific object
Started by pikmin4000, Apr 18 2012 04:32 PM
1 reply to this topic
#1
Posted 18 April 2012 - 04:32 PM
#2
Posted 18 April 2012 - 05:28 PM
if you are player in collision with the block...
event player collision with block:
with(other) solid = true;
move_outside_solid(...);
with(other) solid = false;
or from the other site of the logic
event block collision with player
solid = true;
with(other) move_outside_solid(...);
solid = false;
event player collision with block:
with(other) solid = true;
move_outside_solid(...);
with(other) solid = false;
or from the other site of the logic
event block collision with player
solid = true;
with(other) move_outside_solid(...);
solid = false;
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











