Advanced Camera Issue

For questions about using Classic.

Post » Mon May 24, 2010 8:49 am

Hi everyone,

I'm using the advanced camera plugin for a little game project that I'm working on.

Basically what I'd like to happen, is to use Grid Scrolling for the majority of the game, except for when I enter a certain area, at which point I'd like the camera to zoom out.

I've managed to get this working by smoothly switching cameras as I overlap a detector sprite.

The problem is, when I walk away from it again, I'd like to switch back to the original camera, but it does some strange things.

Here's the cap: [url:346voxkq]http://www.wethesqueemish.com/construct/environmentTest.cap[/url:346voxkq]

Head right (arrow keys) to zoom out, then left again to see the issues.

Thanks for your help, much appreciated.
B
9
S
4
G
5
Posts: 136
Reputation: 2,952

Post » Mon May 24, 2010 11:10 am

The problem is the "crossfading" between the two cameras, while one is moving and the other is static but zoomed. This leads to different lerpings, I think. You can test this by creating a static cam at the last "main" position when switching to "zoomed" and later switch ti the newly created one instead of "main" this transition works perfectly. So maybe you should consider creating a intermediate static cam and fade from "zoomed" to "intermediate" to "main"? But there still might be a problem with transitioning from static to moving. But the zoom problem should be eliminated this way.
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242

Post » Tue May 25, 2010 3:29 am

Thanks for that.

I'll give it a go later maybe later tonight.

On a side note, is there a way to destroy a camera?

There seems to be a destroy all cameras option, but nothing for specific cams, unless I'm missing it somewhere.

Thanks again
B
9
S
4
G
5
Posts: 136
Reputation: 2,952

Post » Tue May 25, 2010 8:20 pm

I managed to get it working, using a switch to a middle camera.

Was a little tricky, but I got there.

Thanks heaps for your help
B
9
S
4
G
5
Posts: 136
Reputation: 2,952


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests