Uploaded February 2012 | Updated November 2026, 3 hours ago
In this video I show how to create a turn based battle system like the ones you'd see in the traditional Final Fantasy games or other RPG's, and did I mention it's for 2D platformers? ^)^
Also, I added some music in this video to spouse up the mood (because trust me, if I didn't, this video would bore you to the point of tears)
And here is the code from the bad1 object used in this video:
Draw event:
draw_text(view_xview+400,view_yview+5,"Zombie Health: "+string(global.enemyhealth))
draw_sprite(sprite_index,image_index,x,y)
;
Link to the game file: dropbox.com/s/vvseuwwiqhc9q26/turn%20based%20battle%20system%20-%20rexfurry.gmk
In this video I show how to create a turn based battle system like the ones you'd see in the traditional Final Fantasy games or other RPG's, and did I mention it's for 2D platformers? ^)^
Also, I added some music in this video to spouse up the mood (because trust me, if I didn't, this video would bore you to the point of tears)
And here is the code from the bad1 object used in this video:
Draw event:
draw_text(view_xview+400,view_yview+5,"Zombie Health: "+string(global.enemyhealth))
draw_sprite(sprite_index,image_index,x,y)
;
Link to the game file: dropbox.com/s/vvseuwwiqhc9q26/turn%20based%20battle%20system%20-%20rexfurry.gmk
![Game Maker - Sword Tutorial
How to make swords/other handheld weapons in Game Maker, enjoy ^)^
Link to download example: http://www.upurload.com/file.php?name=82aa8d44b75c960802d3b8275c56a5da.gmk
Code used in this tutorial:
Player object:
-Create event-
sword = false
right = true
sprite_index = 0
image_speed = 0
-Keyboard Left-
x 3 //Movement not needed if already have movement
right = false
image_index = 1
image_speed = 0
-Keyboard Right:
x += 3 //Movement not needed if already have movement
right = true
image_index = 0
image_speed = 0
-Key Press X-
if right = true && sword = 1
{
instance_create(x,y,obj_sword)
}
else
{
instance_create(x,y,obj_sword)
}
Sword Object:
-Create Event-
alarm[0] = 3
-Alarm 0-
instance_destroy()
-Step-
if obj_player.right = true
{
x = obj_player.x + (22)
y = obj_player.y + (16)
image_index = 0
}
if obj_player.right = false
{
x = obj_player.x - (22)
y = obj_player.y + (16)
image_index = 1
} Game Maker - Sword Tutorial](https://i.ytimg.com/vi/GNlHQui6H3I/mqdefault.jpg)

![Game Maker Flappy Bird Tutorial
In this tutorial I show how to create the basics of Flappy Bird in Game Maker, enjoy :)
Codes used in tutorial:
-Obj_player-
Step:
if place_free(x,y+1){gravity=0.5 gravity_direction=270}else{gravity=0 gravity_direction=270} //Gravity
image_angle 2.5 //Angled Fall - raise 2.5 value to angle faster and down for slower
if keyboard_check_pressed(vk_up) //Flapping
{
vspeed = -5 //How high player can flap - change -5 up or down for higher/lower jump
image_angle = 30 //Angled jump - change 30 value for different angles
}
if place_meeting(x,y,obj_pipe_parent)
{
show_message(Your score is +string(score))
game_restart()
}
Intersect Boundry:
show_message(Your score is +string(score)) //This event isnt needed but it allows you to say what happens when the player hits the top or bottom of the screen
game_restart()
-obj_pipe_u-
Create:
hspeed = -2
instance_create(x+0,y-522,obj_pipe_d)
instance_create(x+0,y-42,obj_score_get)
-obj_pipe_d-
Create:
hspeed = -2
-obj_pipe_spawn-
Create:
instance_create(x+0,y + choose(-2,-4),obj_pipe_u)
alarm[0] = 100
Alarm[0]:
instance_create(x+0,y + choose(-8,-16,-32), obj_pipe_u)
alarm[1] = 100
Alarm[1]:
instance_create(x+0, y + choose(-4,-16,-32), obj_pipe_u)
alarm[0] = 100
-obj_score-
Create:
score = 0
Draw:
//Draws the score
draw_set_color(c_black);
draw_set_font(fnt_score);
draw_text(0,0,(score))
-obj_score_get-
Create:
hspeed = -2
Collision wih player:
score += 1
instance_destroy()
Link to download example file:
https://www.dropbox.com/s/fkpotm10u3og14e/flappy_bird_example_rexfurry.gmk Game Maker Flappy Bird Tutorial](https://i.ytimg.com/vi/GfCOxqjDDkU/mqdefault.jpg)







