Strange (or not) text problem

0 favourites
  • 6 posts
From the Asset Store
This package contains assets created in pixel art, with a 16x16 pixel grid
  • Hi, this is a simple project. It has to tell me the width of the window.

    filedropper.com/textproblem

    The text box doesn't show it. What did I wrong?

    And little off-topic question. Do I have to use delta time when i apply physics force to an object, like "Apply Physics force (40 * dt, 0) at image point 0"?

  • Oh, come on guys :) Someone must know the answer!

  • Can you paste the events directly ? I can't access your file from here !

    When dealing with behaviors, never use dt. Behaviors generally already use it internally (at least, all official ones do).

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It looks like this:

    System -> Every tick -> TextObject -> Set text to "Default resolution:640,480. Now: " & WindowWidth

    When dealing with behaviors, never use dt. Behaviors generally already use it internally (at least, all official ones do).

    But in Ashley's tutorial about delta-time and frame independence is written that physics behavior is an exception and it does not use delta time. Right?

  • Make sure your text object is wide enough to display the text.

    If you want framerate independent physics use the action to set the "stepping mode" to "framerate independent".

    <img src="https://dl.dropboxusercontent.com/u/8367729/construct/pics/steppingMode.PNG" border="0" />

  • Oh, it was that easy... :) Thank you for your answers. This topic can be closed.

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