In this GameMaker video tutorial you learn how to make a Tower defense like game. This tutorial works with GM Lite.
From Wikipedia: “Tower defense is a subgenre of real-time strategy computer games. The goal is to try to stop enemies from crossing the map by building towers which shoot at them as they pass. Enemies and towers usually have varied abilities and costs. When an enemy is defeated the player earns money or points, which are used to buy or upgrade towers.”
(credit BlueLemonKnight)


(6 votes)
you dont have to use code with gamemaker 8.o. this is what you do: when obj bullet is created, test object enemy. if there is more than one enemy, than move bullet to obj enemy. ELSE, send bullet upwards at a speed of 12.
to much coding to hard sorry doesnt help
Give the code below,please.
I’m interested in doing such game.
Thanks for you co-operation.
post the code please
im in game maker 8 and it keeps saying that there is an error with the code that you have provided
When I try to enter the code it says:
ERROR at line 3 pos 85: Symbol ) expected
When I added a ) it still said the same this
Here’s the code:
if (distance_to_object (enemy) <2000)
(
move_towards_point(instance_nearest(x,y,enemy).x,instance_nearest(x,y,enemy).y, 18);[THIS IS LINE 3 POSITION 85]
)
else
(
instance_destroy();
)
The first code in GM 6.1 PRO must be:
if distance_to_object(obj_enemy) < 2000
{
move_towards_point(instance_nearest(x,y,obj_enemy) .x, instance_nearest(x,y,obj_enemy) .y, 18);
}
else
{
instance_destroy();
}
There.
try this
if (distance_to_object(enemy) <2000)
{
move_towards_point(instance_nearest(x,y,enemy).x,instance_nearest(x,y,enemy).y, 10
)}
else
{
instance_destroy();
}
i think it only works for game maker 8
when the bullet collides with the enemy, it destroys all the enemies that have spawned. can you help?
{
if (distance_to_object(Enemy)<2000)
{move_towards_point(instance_nearest(x,y,Enemy).x,instance_nearest(x,y,Enemy).y, 18) }
else
{
instance_destroy();
}
}
this doesnt help me i suk with computers but i rely want to make a tower defense game plus i only have the lite version
I DON’T SEE THE OTHER NUMBER BESIDE OF 18.
YOU ARE NOOBS.
i dont know how you get that background you are painting on is it like just to make a green background and load it?