How do I make a turn system with cameras?

Get help using Construct 2

Post » Thu Jul 26, 2012 2:34 am

I made this game, and I want it so P1 can spend a certain amount of money ( e.x. 150) While it closes in on his castle. After that, If closes in on P2's castle then he spends then it goes back and so on, and so on. But for the life of me, I cant figure out how to do so. Can someone help me? Turret Wars CAPX
B
29
S
7
G
3
Posts: 361
Reputation: 6,187

Post » Thu Jul 26, 2012 3:12 am

You can use the "System: Scroll to position" action and the lerp expression to smoothly scroll the camera between positions.

Example: ScrollToLerp.capx (r99)

X: lerp(ScrollX, "X position you want to end up on", speed)
Y: lerp(ScrollY, "Y position you want to end up on", speed)
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Thu Jul 26, 2012 3:27 am

Thank You!
B
29
S
7
G
3
Posts: 361
Reputation: 6,187

Post » Thu Jul 26, 2012 4:03 pm

On the example you can use space to switch the camera, but on mine it cant. It has to use 2 keys? Umm Help? Turret Wars CAPX
B
29
S
7
G
3
Posts: 361
Reputation: 6,187

Post » Thu Jul 26, 2012 4:11 pm

Put the variable checks as sub-events and use the "Else" condition, like I did in the example. (select first condition and press X)
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Thu Jul 26, 2012 4:31 pm

Thanks!
B
29
S
7
G
3
Posts: 361
Reputation: 6,187


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 28 guests