game stops due unexpected NaN variable

0 favourites
  • 2 posts
From the Asset Store
Easily store, modify, read and manipulate colors with Color Variables!
  • Problem Description

    When i'm clicking down button and then click play button,sometimes the wagon doesn't start .

    Attach a Capx

    bit.ly/1plU2uu

    Description of Capx

    Contains the game code

    Steps to Reproduce Bug

    • Step 1 Run in debugger mode
    • Step 2 click down button and start at y=337 x=194.99 and click play
    • Step 3 Observed Result speed variable is NaN and game stops

      bit.ly/1MbwYZv (error image)

    Expected Result

    wagon starts normally independent of initial y position

    Affected Browsers

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

    Operating System and Service Pack

    windows 10

    Construct 2 Version ID

    Release 223

    Thanks for your help

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Closing as won't fix: NaN is a valid result from some calculations, such as sqrt(-1). It's up to your game to either make sure calculations never result in NaN, or to correctly handle NaN if it is produced as a result. Please also refer to the bug report guidelines, we do not generally accept .capx files like the one you provided in bug reports.

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