Scroll X and Dt

Discussion and feedback on Construct 2

Post » Thu Jul 25, 2013 7:54 pm

I noticed you can't combine scrollx and delta time for some reason, only specific numbers.

Is the scroll rate system dependent?
Image
B
43
S
21
G
18
Posts: 286
Reputation: 13,243

Post » Thu Jul 25, 2013 8:23 pm

Not sure what you mean there.
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,749

Post » Thu Jul 25, 2013 9:33 pm

Well, I setup scroll right and left hooked up to keys and you can only set the scroll rate for scrollx in pixels like +3 or -3.

Won't let you do the typical*dt application to make it system independent.


Image
B
43
S
21
G
18
Posts: 286
Reputation: 13,243

Post » Thu Jul 25, 2013 10:08 pm

Sure it does. For example to scroll right at 100 pixels per second:

Set scrollx to scrollx+100*dt
B
101
S
39
G
134
Posts: 5,591
Reputation: 85,520

Post » Fri Jul 26, 2013 11:47 pm

Well I'm in Release 139 64-bit, Windows Vista and every time I add that, it stops scrolling.

Works fine otherwise.
Image
B
43
S
21
G
18
Posts: 286
Reputation: 13,243

Post » Sat Jul 27, 2013 9:06 pm

Dt also doesn't work anymore for other applications like self.x+100*dt for example and R139 seems to be the new stable release.

It's not the file as I tried it in 3 different new files.
Image
B
43
S
21
G
18
Posts: 286
Reputation: 13,243

Post » Sat Jul 27, 2013 10:19 pm

I made a test and both are working as intended for me on R139 32bit win7:
Scroll and dt example

It must be something wrong in your end.
Scirra Employee
B
175
S
55
G
17
Posts: 711
Reputation: 18,577


Return to Construct 2 General

Who is online

Users browsing this forum: tunepunk and 2 guests