bug in the debugger?

0 favourites
  • 3 posts
From the Asset Store
Match same tiles with each other as fast as you can and earn more score during a limited time!
  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

  • 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?

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