Comments

Log in with itch.io to leave a comment.

Brilliant I may just try that. Thx

(1 edit)

Awesome job so far! Something that would be fun would be when the character transitioned from area to area if it poofed a cloud of smoke hmm... 512x512 it is then XD dunno how to change the picture size.

Todo [ 03/10/2020 ] for today is done

  • Create new project in Game Maker 2
  • Prepare default screen ( background, floor,  player )
  • Add gravity
  • Add code to get character moving, running, jumping
(1 edit)
Sprite NameObject NameSprite Image
sBatoBat
sPlayeroPlayer
sWalloWall
sGhostoGhost

Sprite Name Object Name Sprite Image
sLightBGN/A
(1 edit)

Player [ Create ] code

/// @description Set Player variables
vsp = 0;   // Vertical Speed
hsp = 0;   // Horizontal Speed
grv = 0.3;  // Gravity
walksp = 4;   // Walk Speed
jumpsp = 9;   // Jump Speed

Player [ STEP ] code for basic gravity and LEFT<>RIGHT movement

/// @description Player Collision with walls
// Assign direction variables
key_left = keyboard_check(ord("A"));
key_right = keyboard_check(ord("D"));
key_jump = keyboard_check_pressed(vk_space);
// Moving
var _move = key_right - key_left ;
hsp = _move * walksp;
vsp = vsp + grv;
// Horizontal  Collision
if (place_meeting(x+hsp, y, oWall))
   {
   while (!place_meeting(x+sign(hsp),y,oWall))
       {
           x = x + sign(hsp);
       }
       hsp = 0;
   
   }
x = x + hsp;
   
// Vertical Collision   
if (place_meeting(x, y+vsp, oWall))
   {
   while (!place_meeting(x,y+sign(vsp),oWall))
       {
           y = y + sign(vsp);
       }
       vsp = 0;
   }
y = y + vsp;
(1 edit)

Todo [ 03/10/2020 ]

  • Create new project in Game Maker 2
  • Prepare default screen ( background, floor,  player )
  • Add gravity
  • Add code to get character moving, running, jumping

Todo [ 03/10/2020 ]

  • Create new project in Game Maker 2
  • Prepare default screen ( background, floor,  player )
  • Add gravity
  • Add code to get character moving, running, jumping