SOLVED: Auto-Camera Platformer

Get help using Construct 2

Post » Mon May 21, 2012 1:36 am

How do I have the camera follow the Player as he advances left and right, up or down?

I set a group "Camera" that is active on start for organization, but i don't know what variables to set and control.timbanon2012-05-21 01:40:36
B
5
Posts: 38
Reputation: 501

Post » Mon May 21, 2012 1:37 am

Nevermind.. I figured it out

Condition:Every tick -> Action: System-Scroll to object.
B
5
Posts: 38
Reputation: 501

Post » Mon May 21, 2012 2:06 am

@timbanon

beautiful, isn't it.
B
50
S
17
G
15
Posts: 1,029
Reputation: 26,289

Post » Mon May 21, 2012 3:22 am

very much :]
B
5
Posts: 38
Reputation: 501

Post » Mon May 21, 2012 7:14 pm

theres also a behavior called "Scroll To" you can just add to the object
B
13
S
5
G
2
Posts: 306
Reputation: 3,262

Post » Mon May 21, 2012 11:11 pm

You can also use lerp for smoother scrolling:

[code]System: Scrollto (lerp(ScrollX, Player.X, dt), lerp(ScrollY, Player.Y, dt))[/code]Nimtrix2012-05-21 23:11:43
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Wed May 23, 2012 6:32 am

good knowledge
B
5
Posts: 38
Reputation: 501

Post » Wed May 23, 2012 10:00 am

does any body know how i can control the scroll to speed?
have a look at my capx example

i want to slow down the speed of the arrow as its controlled by the mouse
its to inaccurate at the moment
B
10
S
1
G
1
Posts: 74
Reputation: 1,637

Post » Wed May 23, 2012 10:51 am

[QUOTE=darksteeldanger] does any body know how i can control the scroll to speed?
have a look at my capx example

i want to slow down the speed of the arrow as its controlled by the mouse
its to inaccurate at the moment[/QUOTE]


Here is http://dl.dropbox.com/u/76227787/MouseSmoothScroll.capx

You can change dt number, 0.1 to 1 are slower, so 10 is not so slow, then 30 is really faster.
B
96
S
25
G
20
Posts: 3,052
Reputation: 22,638

Post » Wed May 23, 2012 12:55 pm

thats a really big help mate...thankyou
B
10
S
1
G
1
Posts: 74
Reputation: 1,637

Next

Return to How do I....?

Who is online

Users browsing this forum: R0J0hound, Yahoo [Bot] and 26 guests