Uploaded January 2011 | Updated September 2026, 2 weeks ago
Hey guys how's it goin? In this video I show you how to create a door that lifts upward when you player stands on a button. I hope you enjoy this tutorial and don't forget to subscribe to stay updated on upcoming tutorials, project previews, and everything else!
Also, here's the codes that were use in the video:
Button code: if (place_meeting(x,y,obj_player) )
{
with (instance_nearest(x,y,obj_door) )
{
open=true;
}
}
else
with (instance_nearest(x,y,obj_door) )
{
open=false;
}
Door Create code:
open=false;
gravity_direction=270;
Door Step code: if (open = true)
{
if (place_free(x,y-1) )
y -= 1;
else
gravity = 0;
}
else
{
if (place_free(x,y+1) )
gravity = 0.5; //speed at which it falls
else
gravity = 0;
}
Hey guys how's it goin? In this video I show you how to create a door that lifts upward when you player stands on a button. I hope you enjoy this tutorial and don't forget to subscribe to stay updated on upcoming tutorials, project previews, and everything else!
Also, here's the codes that were use in the video:
Button code: if (place_meeting(x,y,obj_player) )
{
with (instance_nearest(x,y,obj_door) )
{
open=true;
}
}
else
with (instance_nearest(x,y,obj_door) )
{
open=false;
}
Door Create code:
open=false;
gravity_direction=270;
Door Step code: if (open = true)
{
if (place_free(x,y-1) )
y -= 1;
else
gravity = 0;
}
else
{
if (place_free(x,y+1) )
gravity = 0.5; //speed at which it falls
else
gravity = 0;
}






![Rexplays: Crystal Universe Aftermath - [7]
Hey everyone, how it goin? Welcome to part 7 of my brand new Lets pla...or should I say, Rexplay series of Crystal Universe Aftermath! In this episode we......grind? (seriously?) ^)^
Link to download game: http://sandbox.yoyogames.com/games/79955 Rexplays: Crystal Universe Aftermath - [7]](https://i.ytimg.com/vi/pK-l7DqrCWk/mqdefault.jpg)



![Chris Pirillo Animation [1] Im Multi-tasking
A little something Ive been wanting to animate for awhile now, and finally I did! Hope ya guys like it, I may make more in the future :)
-rex ^)^ Chris Pirillo Animation [1] Im Multi-tasking](https://i.ytimg.com/vi/qYYhbDY8SPw/mqdefault.jpg)