- you have given it 2 hp .. but do the destroy check at 1 hp instead at 0 hp
- collisions can happen many times each second, so you might want to set an alarm in the tower so it can only recive dmg at certain intervals .. might be better to do it in the enemy since multible enemies can attack a wall..
enemy collision with tower:if alarm[0]<0{ // if alarm 0 is off other.DefenseHealth -= 1; alarm[0]=room_speed; // 1 second delay til next dmg }enemy alarm 0 event:// leave a comment there to keep countdown active
- your build code can be mashed together into:if keyboard_check_pressed(ord('C')) if Ground=0 { Score = -10 instance_create(obj_player.x,obj_player.y,obj_defense) }
Sorry for the huge bump, but I just went back to this project and I realized that I found my fix!
Seriously, thanks for this. You're going in the credits.
Could someone please close this?



Find content
Not Telling
