- Home /
Question by
DTEntertainment · Feb 20, 2013 at 10:50 PM ·
spawningenemiesinfront
Script that allows me to spawn enemies in game.
I am looking for a script that allows me to spawn a enemie in front of me by pressing a button. Example: In game pressing on 2, a enemie appears in front of me.
Comment
Answer by jessee03 · Feb 20, 2013 at 10:57 PM
I made a tutorial about enemy spawning, hope this helps you. Or I have other videos that instantiate (spawn) objects.
https://www.youtube.com/watch?v=DXrqKRK84Yg
Also for pressing a key down use GetKeyDown. Lots of refrences if you google.
Your answer
Follow this Question
Related Questions
Unity2D spawn frequency not working C# 0 Answers
Using fog/mist to disguise enemy spawning 2 Answers
Max Spawning Obejcts 0 Answers
Position in front of an object? 2 Answers
Spawning enemies in hieararchy 1 Answer