Bug Issue: #1009 error ingame when clicking on actor

Pages: 1


  • Junior Stencyler
October 11, 2018, 09:11:59 pm
           I use some code that aims to transition from one scene to another. However, when I click on an actor I've set as a button with left mouse click, I get an #1009 error
TypeError: Error #1009: Cannot access a property or method of a null object reference.
   at MethodInfo-6468()[Source/scripts/SceneEvents_0.hx:95]
   at com.stencyl.models::Region/innerUpdate()[C:/Users/Music only/Desktop/Stencyl/plaf/haxe/lib/stencyl/1,00/com/stencyl/models/Region.hx:387]
   at com.stencyl::Engine/update()[C:/Users/Music only/Desktop/Stencyl/plaf/haxe/lib/stencyl/1,00/com/stencyl/Engine.hx:2433]
   at com.stencyl::Engine/postUpdate()[C:/Users/Music only/Desktop/Stencyl/plaf/haxe/lib/stencyl/1,00/com/stencyl/Engine.hx:2618]
   at com.stencyl::Engine/onUpdate()[C:/Users/Music only/Desktop/Stencyl/plaf/haxe/lib/stencyl/1,00/com/stencyl/Engine.hx:2611]

Here is the code blocks I used for this behavior.

I don't know if the images for the code shows up (My first time posting on the forum actually). It didn't show up on the preview for me.


  • Master Stencyler
  • *
October 12, 2018, 06:02:31 am
Error 1009 means you are trying to do something to an attribute without value. For example, trying to move an actor attribute that is not assigned to any actor. Go to your scene event 0 (I assume is the first scene event you created), and place print blocks until you find th exact block that's giving you the error. It might have something to do with regions in your case, but that's just a guess.

New attachment added by leuxear - October 12, 2018, 04:02:58 pm

New attachment added by leuxear - October 12, 2018, 04:03:09 pm


  • Junior Stencyler
October 13, 2018, 02:47:55 pm
Oops, just realized I forgot to remove regions when I was trying things out. Yeah, I didn't add any code related to  that region, hence the #1009.

Issue updated by rob1221 - October 13, 2018, 02:56:05 pm
  • Status changed from New to Closed

Pages: 1


  • Reported
    October 11, 2018, 09:11:59 pm
  • Updated
    March 07, 2019, 11:30:05 pm

  • View Status
  • Type
  • Status
  • Priority
  • Version
    3.4.0 beta4
  • Fixed in
  • Assigned to
  • Category
    Actor Type Editor



* On actor code 1.PNG (7.77 kB, 728x121 - viewed 405 times.)

* On actor code 2.PNG (2.95 kB, 372x96 - viewed 431 times.)