Strange (or not) text problem

Get help using Construct 2

Post » Wed Jun 05, 2013 4:39 pm

Hi, this is a simple project. It has to tell me the width of the window.

http://www.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"?
B
3
Posts: 7
Reputation: 214

Post » Mon Jun 10, 2013 9:04 pm

Oh, come on guys :) Someone must know the answer!BartHeq2013-06-10 21:04:35
B
3
Posts: 7
Reputation: 214

Post » Mon Jun 10, 2013 9:11 pm

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).
B
69
S
28
G
24
Posts: 977
Reputation: 18,739

Post » Wed Jun 12, 2013 9:55 am

It looks like this:

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

[QUOTE=Magistross] When dealing with behaviors, never use dt. Behaviors generally already use it internally (at least, all official ones do).[/QUOTE]

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?
B
3
Posts: 7
Reputation: 214

Post » Fri Jun 14, 2013 1:06 am

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".

B
55
S
29
G
19
Posts: 1,520
Reputation: 25,650

Post » Fri Jun 14, 2013 1:01 pm

Oh, it was that easy... :) Thank you for your answers. This topic can be closed.
B
3
Posts: 7
Reputation: 214


Return to How do I....?

Who is online

Users browsing this forum: fearfulelephants and 15 guests