Stencyl 3.4.0 is now out. Get it now!

Bug Issue: Using copied behaviors is dangerous


Pages: 1

oripessach

  • Subscriber - Stencyl Studio
  • *
March 15, 2016, 09:59:48 pm
I'm seeing this in build 9001.

I have a scene behavior that was copied from another behavior. Let's call them Behavior A and Behavior B. 

I have an actor that needs to call a custom block in Behavior A or in Behavior B, depending in which one is used in the scene.

It seems like only the block in Behavior A is accessible. Something gets seriously messed up when scene behaviors are duplicated.

The attached game has a scene behavior (Behavior A) that had a custom block when it was duplicated as Behavior B. Behavior B's custom block and Behavior B itself don't show up in the palette when editing an actor behavior, for example.

Trying to work around this by inserting code like:

sayToScene("Behavior B", "_customBlock_CustomBlockA");

Into the actor's behavior does seem to work, but you have to admit that this is not right.


New attachment added by oripessach - March 15, 2016, 10:00:10 pm


Justin

  • Master Stencyler
  • *
March 15, 2016, 10:21:10 pm
So the scope of the issue is limited to how custom blocks are handled, right?


Issue updated by Justin - April 19, 2016, 12:28:37 pm
  • Issue Assigned from (none) to Justin


Justin

  • Master Stencyler
  • *
April 21, 2016, 11:23:45 am


Justin

  • Master Stencyler
  • *
June 23, 2016, 04:23:24 am


rob1221

  • Master Stencyler
  • *
November 06, 2016, 02:26:48 pm
I have a scene behavior for my game that holds all my global custom blocks.  I shared two of those on the forum by copying the first behavior and deleting the blocks I didn't need to share.  Today I just found out that the same blocks I deleted in the second behavior have also been deleted in the first.


Irock

  • Master Stencyler
  • *
March 18, 2017, 03:26:30 pm
Last night I ran into the issue where when you duplicate a behavior and delete the custom blocks in the new duplicate behavior, they're deleted in both behaviors.

I think fixing this bug should be a priority.


Pages: 1

Details

  • Reported
    March 15, 2016, 09:59:48 pm
  • Updated
    March 18, 2017, 03:26:30 pm

  • View Status
    Public
  • Type
    Bug
  • Status
    New
  • Priority
    Normal
  • Version
    Stencyl 3.4
  • Fixed in
    (none)
  • Assigned to
    Justin
  • Category
    Design Mode

Tags


Attachments

* Copied Behavior Test.stencyl (388.4 kB - downloaded 44 times.)