Development of a 2D shoot 'em up video game in Unity
Generating enemies dynamically 2
A course by Hernán Espinosa , Videogame developer
About the video: Generating enemies dynamically 2
Overview
“Second part of this lesson, in which I am teaching you a technique to generate enemies according to the progress of the game, as well as how to create a class in charge of “invoking” the enemies with the behavior we want.”
In this video lesson Hernán Espinosa addresses the topic: Generating enemies dynamically 2, which is part of the Domestika online course: Development of a 2D shoot 'em up video game in Unity. Learn how to create a shooting video game using the leading platform.
Partial transcription of the video
“Generating enemies dynamically So here we are saying the Spawn Controller will instantiate the Enemy Prefab, It will take this position as a reference, that is, above, and any of these extremes. How many enemies will it make? One hundred, maybe they will be too many, but we are playing, trying. And what I want to do with the reference position that is, I will make a new Vector 3, I will use the Unity Random function, I put a range which gives a Random value between a minimum and a maximum. What is my minimum? It will be a negative value Here at spawnReferencePosition.x, I get this, 8.5. Why...”
This transcript is automatically generated, so it may contain mistakes.
Course summary for: Development of a 2D shoot 'em up video game in Unity
-
Category
3D & Animation -
Software
Unity 3D -
Areas
2D Animation, Game Design, Game Development, Video Games

Hernán Espinosa
A course by Hernán Espinosa
Hernán Espinosa has been dedicated to developing video games of different themes, types and sizes, from role plays to surgery simulators and even augmented reality games for almost a decade.
In the world of video games, Hernán found the meeting point of all his passions: cinema, illustration, animation and music. Its main focus is to design, develop, iterate and optimize software solutions that satisfy the user.
- 90% positive reviews (93)
- 2,548 students
- 41 lessons (9h 40m)
- 30 additional resources (1 files)
- Online and at your own pace
- Available on the app
- Audio: Spanish
- Spanish · English · Portuguese · German · French · Italian · Polish · Dutch
- Level: Intermediate
- Unlimited access forever