i have been trying to create a wave game where enemies keeps re-spawning after i have killed them. i have created the enemy and a gun to kill them with. currently, i just disable the enemy object when it detects a collision with a bullet. and here comes the problem.
i want to get a random number and then teleport the enemy to that coordinate. and then re-enable the enemy so that it seems like it keeps re-spawning. how do i do that? is there a better solution? i am using c#.
i don't think i need to give pictures of my code, but if someone needs it to help me, then i will gladly give out some pictures. i am also a beginner to programming, so if its possible, then simple code is appreciated.
Aucun commentaire:
Enregistrer un commentaire