how to make screen follow the cursor

Get help using Construct 2

Post » Sat Aug 25, 2012 1:32 pm

the title says it all how do I make the screen follow the cursor.
B
8
S
3
G
2
Posts: 23
Reputation: 2,076

Post » Sat Aug 25, 2012 1:52 pm

Every tick
-> System: Scroll to position
    => Mouse.X; Mouse.Y
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
267
S
95
G
66
Posts: 7,215
Reputation: 73,096

Post » Sat Aug 25, 2012 2:14 pm

it scrolls too fast is there anyway I can control the sensitivity?
B
8
S
3
G
2
Posts: 23
Reputation: 2,076

Post » Sat Aug 25, 2012 2:34 pm

use lerp(scrolx,mouse.x,dt*H) , lerp (scroly,mouse.y,dt*H)
H = will change the speed keep trying 1,2,3,4.. until you find something that help you
B
52
S
15
G
6
Posts: 795
Reputation: 12,260


Return to How do I....?

Who is online

Users browsing this forum: gameglaux, KaptanZorba, Xeeko and 11 guests