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

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
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

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

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
48
S
15
G
6
Posts: 795
Reputation: 12,035


Return to How do I....?

Who is online

Users browsing this forum: djcrazypants, marekmk, Yahoo [Bot] and 6 guests