Strange Error #1009

alexsilent

  • Posts: 197
Hi, guys! I have a strange error!

TypeError: Error #1009: Object "null".
   at stencyl.api.engine.actor::Actor/setAngle()[/Users/jon/Desktop/stencyl/plaf/flash/root/stencyl/api/engine/actor/Actor.as:1780]
   at Function/<anonymous>()[C:\Program Files\StencylWorks\preview\scripts\Design_79_79_Wild.as:79]
   at stencyl.api.engine::TimedTask/update()[/Users/jon/Desktop/stencyl/plaf/flash/root/stencyl/api/engine/TimedTask.as:40]
   at stencyl.api.engine::GameState/innerUpdate()[/Users/jon/Desktop/stencyl/plaf/flash/root/stencyl/api/engine/GameState.as:1461]
   at stencyl.api.engine::GameState/postUpdate()[/Users/jon/Desktop/stencyl/plaf/flash/root/stencyl/api/engine/GameState.as:1395]
   at stencyl.api.engine::GameState/update()[/Users/jon/Desktop/stencyl/plaf/flash/root/stencyl/api/engine/GameState.as:1377]
   at org.flixel::FlxGame/update()[/Users/jon/Desktop/stencyl/plaf/flash/flixel/org/flixel/FlxGame.as:400]

captaincomic

  • *
  • Posts: 6108
You are trying to call a method of a null object. It looks like you use a "point Actor towards _ degrees" block on an dead actor or an unset attribute in the "Wild" behavior.
Can you post a screenshot of that behavior?

alexsilent

  • Posts: 197
You are trying to call a method of a null object. It looks like you use a "point Actor towards _ degrees" block on an dead actor or an unset attribute in the "Wild" behavior.
Can you post a screenshot of that behavior?

Thank You so much! In the "Wild" script I have timer for enemy, maybe it's a problem.
Because there isn't a check "IsAlive".

Ganu

  • Posts: 224
yo need to add
Code: [Select]
otherwise if <actor is not alive>
{
cancel
}
Currently waiting for joints in stencylworks.