Game maker tower defense tutorial part 2(b) paths/health/etc
Uploader Comments (BlueLemonKnight)
All Comments (53)
-
@BlueLemonKnight dude
instead of using like 5 sprites for the walls use one "tile" sprite as all of the walls
-
@SHIPLEYC make the bullets get destroyed if the hit an enemy otherwise they can hit more than once
-
@D3athGiv3r "()"'sfor the if statement
-
@lausvane in bullet inside the collision event only place the destroy instance for the bullet itself change to the enemy object and make a bullet collision event and add an execute code and inside that write "healthpoints -= 2" then on the next line write "if healthpoints < 1" then next line "{" then the next line should be "instance_destroy()" then the next line is "}" that will allow the enemies to die seperately
-
when one enemy dies all other enemys die
-
the enemys dont show up
-
can you help me? when a bullet touches a enemy every enemy on the screen dies!
-
@BlueLemonKnight Im still having problems with when my tower kills one of the enemies, all of them disappear and they die from just one hit. But if the bullet damage is 2 and the enemies have 5 HP then they should take a few hits to die right?
-
If youre having problems with HealthPoints and you are using the latest version of Game Maker, change the variable name to just "health" (minus the " ") and that should work.
wat does not defined mean(sorry if you think im a n00b)
RealMrBeepBeepBoop 1 year ago
@RealMrBeepBeepBoop Not defined means basically: Not specified like what it will do
BlueLemonKnight 1 year ago
my enemies dont come down the path everything else works fine what do you think i did wrong????
RealMrBeepBeepBoop 1 year ago
@RealMrBeepBeepBoop I dont know whats wrong but if they dont follow the path either its not defined or the path isnt made correctly
BlueLemonKnight 1 year ago
___________________________________________
FATAL ERROR in
action number 1
of Step Event
for object MainEnemy:
COMPILATION ERROR in code action
Error in code at line 1: If HealthPoints < 1 {instance_destroy()} ^
at position 4: Assignment operator expected. how do i get rid of this?? plz help
D3athGiv3r 1 year ago
ok, you probably made a typo on healthpoints
one of the variables might be mispelled
BlueLemonKnight 1 year ago