• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

GML Visual SparckMan Tutorial

TheouAegis

Member
Only thing I can think of off the top my head is that you have friction and gravity both interacting at the same time while in air. Make sure you set friction to 0 when you jump and set it back to whatever when you land.
 
N

NeZvers

Guest
I don't have any grasp how DnD works, but try to create condition blocks that separate states in which player is.

Code:
var isOnTheGround = place_meating(x,y+1,o_solid); // basically check if on the ground

if (isOnTheGround)
{
   if (moving)
   {
      [playerMovingCode]
   }
   else // not moving
   {
      [playerIdleCode]
   }
}
else // not on the ground
{
   [playerMovingCode]
   [gravityCode]
}

if(collisionHorizontally)
{
   [collisionCode]
}
if(collisionVertically)
{
   [collisionCode]
}
It's simply generalized so you could grasp the idea.

P.S. Do yourself a favor and learn GML, it's more fun and way less limiting. I suggest following several youtubers to learn: Shaun Spalding, HeartBeast, Gloomy Toad Studios, Pixelated Pope, Friendly Astronaut.
 
Top