• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Legacy GM double spawn of object

C

cradeg

Guest
Hello,
I am following this little tutorial.


my project for download : https://we.tl/kPIbBPUHD6 (valid 7 days)

I have now a problem that basically when the obj_enemy is created for some reason I always get 2 on each other. This is visible as the tower needs 2 shots to kill both of them and I get double the score. I really would like to understand why this is happening as my timeline has only 1 obj to be created.

Thank you all in advance for any input.

Greetings :)
 

jo-thijs

Member
Hi and welcome to the GMC!

The reason there are 2 on top of each othe in the gmz file you gave,
is that you've already put obj_enemy in your room and you then let obj_wavecontrol spawn an other one in the timeline that is set in its create event.
I guess you want to delete obj_enemy in the room.
 
Top