0 Favourites

Variable & Wait bug

  • Problem Description

    ____ The Variable & Wait event's don't work on time exactly ____

    Attach a Capx

    ____ Upload a Capx to this post ____

    Description of Capx

    ____ One sprite - one global variable - two events ____

    Steps to Reproduce Bug

    • watch the screen for one min and you will see the problem
    • Step 2
    • Step 3 etc.

    Observed Result

    ____ The sprite not following the wait event some times the event ordering the sprite to be transparent but you can see the sprite flashing ____

    Expected Result

    ____ It's suppose when variable 0 work the opacity become 0____

    Affected Browsers

    • Chrome: (YES, you can see the problem always)
    • FireFox: (YES)
    • Internet Explorer: (YES)

    Operating System and Service Pack

    ____ win 7 - Service Pack 1 ____

    Construct 2 Version ID

    ____ r 170 beta ____

    =====

    This is very old bug, I've seen it before 4 months.

    Not only with opacity it effect collision and visible.

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • Closing as not a bug, you misunderstand how 'Wait' works. It doesn't pause all the events. 'z = 0' is true all the time, so every tick (60 times a second) you're queuing up a new 'wait 3 seconds then set z to 1' command. The next event then starts conflicting with that since it is every tick (60 times a second) also queuing up a new 'wait 5 seconds then set z to 0' command. Solution: add 'trigger once' to both events.

  • Solution: add 'trigger once' to both events.

    Dude, you saved my brain! Thanks a lot!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)