I'm not sure how this is done in the current Zscript. Is it yet possible to spawn enemies?
I'm not sure how this is done in the current Zscript. Is it yet possible to spawn enemies?
Yes. Use CreateNPC() to make a new enemy, then set the attributes of the resulting npcs like you would an item or FFC. Look in the ZScript documentation for details.
Also, I believe there's a topic in beta discussion where DN laid out the entire enemy definitions and constants, which should help in determining how you want to construct the enemy.
AGN's Resident Zelda Classic Developer and Sonic the Hedgehog Fanboy
Yes, but when will setting NPC variables be implemented?
_L_, it should be working in b15. Is it not?
CreateNPC isn't working now. At least, the syntax isn't obvious.
This doesn't compile:
Compiler doesn't like the first line, says I need an identifier.Code:npc spawned_enemy = CreateNPC(enemy_id); spawned_enemy->X = this->X spawned_enemy->Y = this->Y
Yes, the NPC commands will be new in b15; I was pretty sure I'd added them before I left.
There are currently 1 users browsing this thread. (0 members and 1 guests)