Game Maker

Rad

...
Reaction score
228
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
 

Attachments

  • Bullet.zip
    14.2 KB · Views: 135

UndeadDragon

Super Moderator
Reaction score
447
I just had a look at it, but I can't see anything wrong (although I am not so good with Game Maker). When I tested it, one of the enemies got destroyed when it came near the tower (no bullet) and then after that, nothing happened. The enemies still moved, but they never got shot by the (invisisble) bullets again.

_______________________

 

Aqua Dragon

I'm made of water. Remember that now.
Reaction score
72
YOu're asking the wrong people. Not many people here use Game Maker, but the guys at the Game Maker Community could help you out pretty quickly

http://gmc.yoyogames.com/

They know about how to do just about anything people want :)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top