Layer Behavior Not Working [SOLVED]

ChunkyMonkey

  • Posts: 430
    First of all, yes, this is using 2.0's Nightly Build, but I doubt that it's problem, I think I messed up. I'm starting a semi-3d Game and am using this layering script to make the game look right when going. Keep In mind this event is attached to my "Tile" actor and "Box" is my player (screenshots below).

    So here's the 2 errors I get with the script I used below.
Code: [Select]
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at stencyl.api.data::Assets$/toXML()[/home/stencyl/stencyl.net/jenkins/jobs/StencylWorks-Dist/workspace/plaf/flash/root/stencyl/api/data/Assets.as:145]
at scripts::MyAssets/loadScenes()[C:\Users\Alex\Desktop\Stencyl 2.0\preview\scripts\MyAssets.as:299]
at stencyl.api.data::Assets/loadAll()[/home/stencyl/stencyl.net/jenkins/jobs/StencylWorks-Dist/workspace/plaf/flash/root/stencyl/api/data/Assets.as:87]
at scripts::MyAssets/initAssets()[C:\Users\Alex\Desktop\Stencyl 2.0\preview\scripts\MyAssets.as:271]
at Function/<anonymous>()[C:\Users\Alex\Desktop\Stencyl 2.0\preview\scripts\MyAssets.as:198]
This one says an actionscript error has occured
Code: [Select]
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at stencyl.api.engine::GameState$/focusChanged()[/home/stencyl/stencyl.net/jenkins/jobs/StencylWorks-Dist/workspace/plaf/flash/root/stencyl/api/engine/GameState.as:1795]
at org.flixel::FlxGame/onFocusLost()[/home/stencyl/stencyl.net/jenkins/jobs/StencylWorks-Dist/workspace/plaf/flash/flixel/org/flixel/FlxGame.as:316]

« Last Edit: February 02, 2012, 04:59:38 pm by ChunkyMonkey »

rob1221

  • *
  • Posts: 9473
Is the "Box" attribute assigned correctly and does "Box" die at any time during the scene?

ChunkyMonkey

  • Posts: 430
    Wow, nevermind I forgot to assign box to a specific actor but I just realized, I don't know how to set an attribute with Events in an actor's Logic section. I'm going to call this one solved and ask in the StencylWorks 2.0 topic.