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
280
S
104
G
86
Posts: 7,313
Reputation: 84,356

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
16
G
7
Posts: 795
Reputation: 12,820


Return to How do I....?

Who is online

Users browsing this forum: Hiddendanger, plinkie and 6 guests