User Tag List

Results 1 to 3 of 3

Thread: odd bug...

  1. #1
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)

    odd bug...

    I've encountered a bug where drag-copying actions in the event editor causes buggy results.

    In my file, I have a couple "create object relative to another object" actions. I went to change the x,y offset for the first one and then drag-copy it to the other places the action exists. But when I do, I get an odd bug where enemies in my game copy each others behaviors. The odd thing is that if I manually use the "Edit" command on each of these actions, the bug does not occur.

    Here is the file: drag-copy_bug file

    If you run the file as it is, LEFT and MIDDLE mouse clicks will spawn enemies with different bullet behaviors. One fires at the player and the other fires at a 45 degree angle.

    To reproduce the bug, simply go to the "Bullet Spawning" section of the code and drag copy the first "Create Bullet" action to the second "Create Bullet" action. They should both appear to be setting the same thing, but if you now run the frame you will see the enemies now copy each other's behaviors. The first enemy that spawns will fire correctly, but if you spawn another enemy of a different type, the first enemy's bullets will change course and copy the behavior of the second. Manually editing each of these actions does not cause the bug.

    I'm not sure if this has been reported before or if it is just a problem with my code. Hopefully it will help.

    Mobichan

  2. #2
    No Products Registered

    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    1,141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: odd bug...

    It's most likely a problem with action order. When you copy the create action it will end up the last action in the current event. Since no bullet has been created when the Set Movement action is executed it will affect the bullets already on the screen. To fix this, Doubleclick on the Create action and move it to the top of the list.

  3. #3
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)

    Re: odd bug...

    ahh... I didn't consider that. Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •