[SOLVED] How do I make FLUID scroll

Get help using Construct 2

Post » Fri Aug 19, 2016 2:55 pm

hi,in my test i have a landscape of 6000, 2400px
my window size is 1920, 1080

what i have at the moment is a sprite allways at the mouse position, like a target.
i have ONE problem, when i move in the 6000, 2400px the scroll is really too fast

how to have allways a slow / fluid scrolling camera following my cursor?
here you can see a pic of my cursor "cross"
https://s3.postimg.io/yn28uyptd/HUD_HELMET_RESULT06a.jpg
Last edited by imothep85 on Fri Aug 19, 2016 6:25 pm, edited 1 time in total.
B
37
S
15
G
7
Posts: 1,680
Reputation: 9,612

Post » Fri Aug 19, 2016 5:39 pm

Im stuck with this scrolling problem
i solved the speed with the formula system scrol to ((Mouse.X+TORCHLIGHT.X)/3) ((Mouse.Y+TORCHLIGHT.Y)/3)
BUT my problem is, the LAYOUT SIZE is 4000x2000, the Window Size is 1920x1080
but when i want to scroll the SCROLL dont move inside the 4000x2000 layout size!!
HERE its a picture of my layout

https://s4.postimg.io/6mnbzs0gr/BKG_SCROLL01.jpg
B
37
S
15
G
7
Posts: 1,680
Reputation: 9,612

Post » Fri Aug 19, 2016 5:46 pm

Attached simple example. Basically if you do not move your mouse it should take the camera 2 seconds to reach the position to which the cursor was first moved.

EDIT: this should also solve the problem you described in the second post. Use scrollx and scrolly to return the current camera position in the layout, then scroll to a point relative to that by adding whatever up/down or left/right scroll number of pixels you wish.

https://www.dropbox.com/s/njypmgrwa6pcj ... .capx?dl=1
Last edited by Pulstar on Fri Aug 19, 2016 6:14 pm, edited 1 time in total.
B
15
S
6
Posts: 85
Reputation: 1,195

Post » Fri Aug 19, 2016 5:56 pm

Hey thanks Pulstar it solve my problem XD where did you find that tv calibration picture??
B
37
S
15
G
7
Posts: 1,680
Reputation: 9,612

Post » Fri Aug 19, 2016 6:16 pm

No problem. I googled for test screen images and it came up in the results on some forum post. Not sure what the original source is.
B
15
S
6
Posts: 85
Reputation: 1,195

Post » Fri Aug 19, 2016 6:20 pm

thanks D
B
37
S
15
G
7
Posts: 1,680
Reputation: 9,612


Return to How do I....?

Who is online

Users browsing this forum: tarek2 and 9 guests