1
Ask a Question / Re: Scorekeeper
« on: June 06, 2011, 02:26:59 pm »
bump, I really need help with this. 

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
If you're not sure what to do about that, you should be able to fix that error by going into the "Die After Time" behavior and adding a "If <[self] is alive>" block after all of the "do after x seconds" blocks.Thanks! I already removed the kill commands from one behavior, though.
~ Blob
It looks like the Respawn behavior is trying to reference the player actor that you removed with the Die after time behavior...You, sir, are a genius.
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at stencyl.api.engine.actor::Actor/setCurrentFrame()[/Users/jon/Desktop/stencyl/plaf/flash/root/stencyl/api/engine/actor/Actor.as:474]
at Function/<anonymous>()[C:\Users\myname\Documents\StencylWorks\sandbox\flash\scripts\Design_37_37_Respawn.as:69]
at stencyl.api.engine::TimedTask/update()[/Users/jon/Desktop/stencyl/plaf/flash/root/stencyl/api/engine/TimedTask.as:37]
at stencyl.api.engine::GameState/innerUpdate()[/Users/jon/Desktop/stencyl/plaf/flash/root/stencyl/api/engine/GameState.as:1365]
at stencyl.api.engine::GameState/postUpdate()[/Users/jon/Desktop/stencyl/plaf/flash/root/stencyl/api/engine/GameState.as:1299]
at stencyl.api.engine::GameState/update()[/Users/jon/Desktop/stencyl/plaf/flash/root/stencyl/api/engine/GameState.as:1281]
at org.flixel::FlxGame/update()[/Users/jon/Desktop/stencyl/plaf/flash/flixel/org/flixel/FlxGame.as:354]
I didn't see a puff of smoke at all.
If you only want the death to happen with certain Actors (e.g., members of an "Enemies" group), you'll want to do something like this.