bug in the debugger?

Bugs will be moved here once resolved.

Post » Mon Feb 17, 2014 6:48 am

Link to .capx file (required! If link is blocked remove the http and www parts):
dropbox.com/s/h3eku40e03wtill/debugProblem.capx

Steps to reproduce:
1. create a physics object
2. store a velocity from the physics object in a variable
3. compare that variable to the listed result in the debugger for velocity

Observed result:
There is a difference between the stored variable and the velocity of the object as read by the debugger

Expected result:
The variable storing velocity and the debugger reading of velocity should be the same. (are they the same? - is it just a wrong interpretation)

Browsers affected:
Chrome: yes
Firefox: yes


Operating system & service pack:
windows 7 64 bit, service pack 1

Construct 2 version:
Release 158.2 64 bit

* You must run the file in debug mode. and inspect sprite.physics.velocity and compare it to the variable stored velocity.
Image
B
33
S
11
G
2
Posts: 564
Reputation: 5,163

Post » Mon Feb 17, 2014 5:00 pm

Thanks, they didn't report the same value and now the debugger shows the same values as the expression. Note that your .capx multiplies the Y velocity by dt though so will still show a different value.
Scirra Founder
B
400
S
236
G
89
Posts: 24,546
Reputation: 195,471

Post » Mon Feb 17, 2014 9:29 pm

I had it multiplying by dt because that was a lot closer to correct than the not, but still a little off (I originally thought it was a dt issue).

Thanks, will the fix be in the next release?
Image
B
33
S
11
G
2
Posts: 564
Reputation: 5,163


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest