game stops due unexpected NaN variable

Bugs will be moved here once resolved.

Post » Thu Mar 17, 2016 6:52 pm

Message: tito1986 can only post plain text URLS until they have 500 rep. 2 URLS modified. Why?
Problem Description
When i'm clicking down button and then click play button,sometimes the wagon doesn't start .

Attach a Capx

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 (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
Posts: 11
Reputation: 222

Post » Tue Mar 22, 2016 3:35 pm

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.
Scirra Founder
Posts: 25,287
Reputation: 200,958

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 4 guests