Help with spawned entities
Posted: Sun Feb 01, 2015 12:33 pm
I`ve written a code that spawns a monster in front of the party, prints a message and plays some screen/sound effects etc.
I've then linked it to a timer which runs a script to make the monster disappear after a few seconds. But I can't figure out what I need to code to make the spawned entity disappear. Just keep getting error messages:
I've tried all sorts of combinations. Any advice?
George
Code: Select all
playSound("karim")
party:shakeCamera(0.3, 4)
spawn("karim_ghost", party.level, party.x+3, party.y, 0)
hudPrint("Lord Karim: 'I'm watching you..'")I've then linked it to a timer which runs a script to make the monster disappear after a few seconds. But I can't figure out what I need to code to make the spawned entity disappear. Just keep getting error messages:
Code: Select all
function removeghost
karim_ghost:destroy()
endGeorge