Camera for Side-Scrollers?

For questions about using Classic.

Post » Sun Feb 22, 2009 10:17 am

Hey guys,

Just thought we could ramble about this topic. I'm currently still sorta doing pre-production for a personal project, trying to figure out the visual style and how the whole thing could feel like and one of the important aspects to tackle is the camera / scrolling system.

So... I guess everyone here knows Cave Story, right? If not, you can download it here:

http://www.miraigamer.net/cavestory/downloads_1.php

What I like about its camera system is that it's not just fixed to the player sprite - it's dynamic and has a nice little drag effect. I like that effect, it's not driven to the point where it can become annoying, but it adds some dynamic, as if the camera tries to follow the character and has to readjust a bit, it makes the whole thing feel a bit more fluid.

So, I've seen some camera threads here already but never quite understood the logic behind their systems. My idea is that you create a camera sprite that is linked to the player sprite and set the system to scroll to the camera sprite - then, if we'd give the camera an expression that emulates this 'drag' effect (so it always drags a bit behind the player sprites movements), we should have what we want, right?

Any thoughts on how to solve this in the simplest, most streamlined way? The effect should be subtle enough to not be annoying to the player, but just to make the whole game a tad more dynamic.
B
6
S
2
G
3
Posts: 520
Reputation: 2,690

Post » Sun Feb 22, 2009 11:53 am

Here is an [url=https://dl.getdropbox.com/u/629300/platform_camera_example.cap:2d1gun3d]trailing platform camera example[/url:2d1gun3d].
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Sun Feb 22, 2009 12:16 pm

Gotta love this community, this is pretty much exactly what I want :)
B
6
S
2
G
3
Posts: 520
Reputation: 2,690

Post » Sun Feb 22, 2009 5:16 pm

Damn gradients dont render too well with float scrolling positions. I guess thats because they use the bouncing box co-ordinates. If you replace all the gradients with sprites the scrolling looks fine.
B
4
S
2
G
5
Posts: 641
Reputation: 3,011

Post » Sun Feb 22, 2009 5:23 pm

Uh, they are sprites. Even if I fill bounding boxes with pure black color, they still flicker.

Hmm, but if I leave some blank space along borders, they are smoother...
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest