The VG Resource
Game Maker codings anyone knows of? - Printable Version

+- The VG Resource (https://www.vg-resource.com)
+-- Forum: Archive (https://www.vg-resource.com/forum-65.html)
+--- Forum: July 2014 Archive (https://www.vg-resource.com/forum-139.html)
+---- Forum: Other Stuff (https://www.vg-resource.com/forum-6.html)
+----- Forum: Gaming Discussion (https://www.vg-resource.com/forum-18.html)
+----- Thread: Game Maker codings anyone knows of? (/thread-10103.html)



Game Maker codings anyone knows of? - ZeldaClassicEXPERT - 12-02-2009

Code:
if ( hspeed> 0 && x < other.x )
{
  move_contact_all(direction,12);
  hspeed = 0;
}
if ( vspeed> 0 && y < other.y )
{
  move_contact_solid(direction,12);
  vspeed = 0;
}
if ( vspeed< 0 && y > other.y )
{
  move_contact_solid(direction,12);
  vspeed = 0;
}
if ( hspeed< 0 && x > other.x )
{
  move_contact_all(direction,12);
  hspeed = 0;
}



RE: Game Maker codings anyone knows of? - Vipershark - 12-03-2009

DO you/me/other(s) know Game Maker

this is GML, by the way
at a glance, it appears to be something that would be in a collision event for a player object colliding with the floor or something.

What's the context?


RE: Game Maker codings anyone knows of? - Kitsu - 12-03-2009

Yeah, it looks like something that's just supposed to be used to make something move up against a block when you collide with it.

What exactly is the purpose of this topic?


RE: Game Maker codings anyone knows of? - Alpha Six - 12-03-2009

I think he's having an issue with the code? I dunno, but if I don't find a reason for this topic to still be open later, I'm probably gonna end up locking it. Just seems like a waste of a topic (as are 90% of ZCE's topics)


RE: Game Maker codings anyone knows of? - PrettyNier - 12-09-2009

You are supposed to post game maker scripts here to help people I guess.

I love this topic and zeldaclassicexpert.