GameMaker: Studio

GameMaker: Studio

Not enough ratings
gamemaker studio coding
By Polis Ranger
I love gamemaker studio is realy fun to make games sometimes is hard to do coding it is.
We need coding to make things move, tork, hit, follow your player to.
+ I'll pot some gamemaker studio tutorial videos to help you.

So here are some coding I know here.
playerSpeed = 5;
player Hitpoints = 125;
//MOVEMENT
if keyboard_check(vk_left)
{ x -= playerSpeed;
}
if keyboard_check(vk_right)
{ x += playerSpeed;
}
if keyboard_check(vk_up)
{ y -= playerSpeed;
}
if keyboard_check(vk_down)
{ y += playerSpeed;
}
//HITPOINT STUFF
if player Hitpoints > 125 //This caps off my players hitpoints
{ playerHitpoints = 125;
}
if playerHitpoints <= 0 //This causes the player to DIE!!!
{ room_goto(Game_over);
}
playerHitpoints -= 15;
playerHitpoints += 15;
draw_sprite(sprite_index,-1,x,y);
draw_text(50,25,playerHitpoints);
move_towards_point(32,165,5);
instance_destroy();

Hope this will help you if your new too it.
Thank you for reading.
   
Award
Favorite
Favorited
Unfavorite
gamemaker studio tutorial video.
Here are some videos for you how to do codeing.
Is to help you with gamemaker studio

Game Maker Studio: Basic Tutorial


GameMaker Studio Tutorial #11




GameMaker Studio Tutorial #1



GameMaker Studio Tutorial #2





3 Comments
Khaos 8 Jan, 2014 @ 4:33pm 
hey do you know any GOOD 8 bit makers [for free]?
Polis Ranger  [author] 8 Jan, 2014 @ 7:42am 
is a start.
Khaos 8 Jan, 2014 @ 4:44am 
its ok...not exactly what i was looking for.