Object Following Camera - "Ghost" mode?

Get help using Construct 2

Post » Mon Aug 06, 2012 3:52 pm

Hi guys,

I've a hovering camera following my player, and it seems to be working well... except it gets stuck when trying to follow another player and there's a solid object between the two. Now I got a work around working that uses the jump-thru attributte instead, but is there anyway to make my camera object float around regardless of whether an object it's about to go through is solid or not?
B
7
Posts: 42
Reputation: 908

Post » Mon Aug 06, 2012 7:22 pm

Can't you move the camera with a behavior that doesn't respond to solid objects. Or perhaps you could do the camera motion with just events.
B
79
S
24
G
52
Posts: 4,724
Reputation: 39,711

Post » Tue Aug 07, 2012 9:01 am

Hmm.. tried the idea out, got rid of the 8-direction behavior and just used +- operations on the camera position. So far it looks all right. You think there's a performance hit between using the 8-direction's simulation control vs. directly manipulating the x and y axes of the camera?
B
7
Posts: 42
Reputation: 908

Post » Tue Aug 07, 2012 9:21 am

You probably wouldn't notice any difference. But just controlling the X and Y should be less performance heavy as far as I know.
B
27
S
8
G
8
Posts: 903
Reputation: 8,452


Return to How do I....?

Who is online

Users browsing this forum: Draconinho, LeFuji, totoe and 12 guests