Game Development Reference
In-Depth Information
Secondly, we want to drag in a
Collide
behavior, and change the options so it's
colliding with
Any
actor in the
Platform
tag.
If you want, you can de-select the
Fixed Rotation
option under the
Physics
drop
down. This way, if your enemy falls off a platform, he doesn't flip around like
crazy and fall flat on his face. For this guy, however, I am going to allow him to
automatically rotate because when he reaches inclines and declines, I want him to
rotate accordingly.
I also changed his
Max Speed
option to
250
so he doesn't start moving superfast.
Try this
Do you want an infinite horde of enemies instead of having to
place them all in the level? Why not have an off-screen actor
spawning enemies at random intervals and random positions?
This is great for top-down platformers, or even racing games
to spawn cars on the road!
Now we've created an awesome new enemy! He doesn't do much though. He's
kind of boring, isn't he? What would make him even better? Oh, duh! Moving and
attacking and all that fun stuff! Let's make him move!