0 Favourites

[r188] Sine changes value after being enabled/disabled

  • Problem Description

    Sine behavior changes values each time you enable/disable it via events.

    Description of Capx

    Two sprites with Sine behavior which can be turned on/off by the player movement.

    Steps to Reproduce Bug

    • Step 1: move the player to the central sprite (enables sine)
    • Step 2: get away from the central sprite (disables sine)
    • Step 3: repeat Step 1 & 2

    Observed Result

    The Sine value (magnitude?) will be changed if you deactivate then activate the behavior.

    Expected Result

    Sine value should remain the same as set in the object behavior window (or events).

    Affected Browsers

    • Chrome: (YES)
    • FireFox: (YES)
    • Internet Explorer: (YES)

    Operating System and Service Pack

    Windows 7 64bit

    Construct 2 Version ID

    r188 Beta

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • yes this broke the enemies in my game.. made them jump to random spots. I think what is happening is the sine movement continues to calculate where the sprite would be if the code was still enabled.. When you disable the behavior the movement stops making it seem like the behavior has been disabled... when you turn it back on it seems to jump to the point where it would have been had you not disabled it.

    seems like it could be a simple fix.

  • This was an unintentional breaking change in r188. It's reverted with an alternative solution for the next beta.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic Locked topic
195 16,197
Ashley's avatar
Ashley Construct Team Founder
Unread hot topic
102 6,403
Ashley's avatar
Ashley Construct Team Founder
Unread hot topic
62 5,396
cjbruce's avatar
cjbruce