Jump to content


[WANT]move_outside_solid/all to a specific object

  • Please log in to reply
1 reply to this topic

#1 pikmin4000


    GMC Member

  • GMC Member
  • 253 posts
  • Version:GM:Studio

Posted 18 April 2012 - 04:46 PM

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:
  • 0

Still a beginner...
I progressed! I'm an intermediate game maker now.

Shaders, file saving, networking: I'm what they call- advanced.

#2 icuurd12b42


    Self Formed Sentient

  • GMC Elder
  • 17662 posts
  • Version:GM:Studio

Posted 18 April 2012 - 05:42 PM

if you are player in collision with the block...

event player collision with block:

with(other) solid = true;
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

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users