Skip to main content
User login
OpenID
What is OpenID?
Username or e-mail
*
Password
*
Log in using OpenID
Cancel OpenID login
Create new account
Request new password
Register
Home
Browse
2D Art
3D Art
Concept Art
Textures
Music
Sound Effects
Documents
Featured Tutorials
Submit Art
Collect
My Collections
Art Collections
Forums
FAQ
Leaderboards
All Time
Total Points
Comments
Favorites (All)
Favorites (2D)
Favorites (3D)
Favorites (Concept Art)
Favorites (Music)
Favorites (Sound)
Favorites (Textures)
Weekly
Total Points
Comments
Favorites (All)
Favorites (2D)
Favorites (3D)
Favorites (Concept Art)
Favorites (Music)
Favorites (Sound)
Favorites (Textures)
❤ Donate
Search Terms
FLARE [ARCHIVED]
Is it possible to allow the player to summon an enemy (not a helper, something to fight)?
TakeAShower
Thursday, October 25, 2018 - 09:25
I just whant to know if it's possible - it will be useful for testing purposes.
Theres a few different ways to spawn enemies. You could instantiate a enemy on a key press or enter a trigger collider to spawn the enemy so I would say yes.
This can be done with Events (map/script events or via the "exec" dev console command):
spawn=<enemy category>,<X>,<Y>
So spawn=goblin,10,20 will spawn any enemy with the category "goblin" at position (10,20). If you want to spawn a specific enemy, it will need to have a unique category as part of its "categories" variable.
But this does not give much control over the number spawned - it takes a while to spawn 20 or so...