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?
B
39
S
20
G
18
Posts: 265
Reputation: 12,983

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,699

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.


B
39
S
20
G
18
Posts: 265
Reputation: 12,983

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
94
S
33
G
114
Posts: 5,357
Reputation: 73,775

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.
B
39
S
20
G
18
Posts: 265
Reputation: 12,983

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.
B
39
S
20
G
18
Posts: 265
Reputation: 12,983

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
156
S
53
G
17
Posts: 710
Reputation: 17,900


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 7 guests