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
294
S
117
G
96
Posts: 7,311
Reputation: 71,086

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


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot] and 32 guests