Wonder if anyone here can help me.
I'm trying to make a sort of tower shoot enemies who come in range.
I got a level set up and just need a small bit of code to tie it together.
I just want the tower to spawn a bullet when an enemy comes in range, and have the bullet chase the enemy. I got code that seemed to work, but I could never actually see the bullet and many times it would destroy the wrong target.
I haven't been deep into GML. This is for a final project in a game design class, due in three weeks. And no, this is not what my game will look like. It's just for the system.
File attached is a .gmk file
I'm trying to make a sort of tower shoot enemies who come in range.
I got a level set up and just need a small bit of code to tie it together.
I just want the tower to spawn a bullet when an enemy comes in range, and have the bullet chase the enemy. I got code that seemed to work, but I could never actually see the bullet and many times it would destroy the wrong target.
I haven't been deep into GML. This is for a final project in a game design class, due in three weeks. And no, this is not what my game will look like. It's just for the system.
File attached is a .gmk file