Bug Issue: Error #1009 after killing actor


Pages: 1

fatsomania36

  • Junior Stencyler
February 07, 2017, 03:37:35 pm
I am making a space invaders game very similar to the tutorial on this site. I am trying to make it so when the ship enters a region, the alien ship it's in front of shoots it.  I have it set so if the alien ship is alive, every second it shoots a  bullet. For some reason when it dies, though, I get this error:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
   at MethodInfo-6538()[Source/scripts/SceneEvents_0.hx:121]
   at com.stencyl.behavior::TimedTask/update()[C:/Program Files (x86)/Stencyl/plaf/haxe/lib/stencyl/1,00/com/stencyl/behavior/TimedTask.hx:48]
   at com.stencyl::Engine/update()[C:/Program Files (x86)/Stencyl/plaf/haxe/lib/stencyl/1,00/com/stencyl/Engine.hx:2373]
   at com.stencyl::Engine/postUpdate()[C:/Program Files (x86)/Stencyl/plaf/haxe/lib/stencyl/1,00/com/stencyl/Engine.hx:2618]
   at com.stencyl::Engine/onUpdate()[C:/Program Files (x86)/Stencyl/plaf/haxe/lib/stencyl/1,00/com/stencyl/Engine.hx:2611]

I am telling it to only fire a bullet if the alien ship is alive, so I don't know why I am getting this error. It seems like it's ignoring that. Here are my blocks:




rob1221

  • Master Stencyler
  • *
February 07, 2017, 03:59:44 pm
Try checking if the enemy ship is alive within the timer as well.  Closing this issue as it is not a bug but you can make a thread on the forums if my suggestion doesn't solve the problem.
  • Status changed from New to Closed


Pages: 1

Details

  • Reported
    February 07, 2017, 03:37:35 pm
  • Updated
    February 07, 2017, 03:59:44 pm

  • View Status
    Public
  • Type
    Bug
  • Status
    Closed
  • Priority
    Normal
  • Version
    3.4.0 beta4
  • Fixed in
    (none)
  • Assigned to
    (none)
  • Category
    Design Mode Blocks

Tags