Bug Issue: Custom Block error if behavior not attached


Pages: 1

Luyren

  • Master Stencyler
  • *
June 09, 2024, 04:37:34 pm
Version 4.1.3, on Windows
If you have a custom block used on a scene/actor that doesn't have its source behavior attached, the game controller prints a "behavior does not exist" warning. Tested with an action custom block specifically.

Previously, nothing would happen. I'm assuming the block simply didn't execute. This was convenient since I didn't have to add an "if self/scene has behavior" every time I used the custom block.

Test game attached. There's a scene behavior with the custom block, and the scene's events uses the custom block in its update event. Test the game, open the game controller and see the wall of warnings. Tested on both Flash and Desktop.


New attachment added by Luyren - June 09, 2024, 04:37:56 pm


Pages: 1

Details

  • Reported
    June 09, 2024, 04:37:34 pm
  • Updated
    June 09, 2024, 04:37:56 pm

  • View Status
    Public
  • Type
    Bug
  • Status
    New
  • Priority
    Normal
  • Version
    3.5.0 beta 1
  • Fixed in
    (none)
  • Assigned to
    (none)
  • Category
    Compiling/Testing Games

Tags


Attachments

* A Custom Block Bug.stencyl (130.46 kB - downloaded 101 times.)