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.


Issue updated by Justin - July 10, 2018, 10:32:03 pm
  • Tags added: resources


Justin

  • Master Stencyler
  • *
October 29, 2019, 07:28:58 pm
Fixed in b10443.
  • Status changed from New to Resolved


Issue updated by Justin - December 12, 2019, 05:34:21 pm
  • Tags added: 4.0.2


Pages: 1

Details

  • Reported
    March 15, 2016, 09:59:48 pm
  • Updated
    December 12, 2019, 05:34:21 pm

  • View Status
    Public
  • Type
    Bug
  • Status
    Resolved
  • 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 589 times.)