Super Princess Peach scrolling

Get help using Construct 2

Post » Fri Jan 31, 2014 10:32 am

Hi
I've been playing Super Princess Peach lately and I noticed it's got a pretty nice approach to scrolling so I've been trying to replicate it in construct 2.

As far as I can tell the way it works is this: The the camera is always centered on the player horizontally but not vertically. Instead the camera only moves up or down when Peach comes close to the top or bottom of the screen. This means there is a lot less up and down motion when jumping around a large area than if the camera was just always centered on peach.

Anyway I've sort of replicated the scrolling but the problem is that it can can be jerky so I was wondering if anyone would be able to take a look at what I've got and offer an suggestions for how I could eliminate the problem or if your aware of a better way to do it.
Any help would be appreciated
thanks

Click here for the capx
B
6
S
2
G
1
Posts: 52
Reputation: 1,347

Post » Fri Jan 31, 2014 10:51 am

I downloaded and tried your example. Not seeing the problem, I watch some levels of princess peach to understand, and played around it a little.

What I tried is removing the "is jumping" condition, and use smaller margins top and bottom (in the events 8 and 9) to move the camera at the last possible time, to prevent too much scrolling.
It's hard to tell what they put on top of that in the game though, some small layouts don't scroll at all, but most I've seen seems to be linear, quite horizontal.

Only small problem I saw was sometime the camera moving then stopping, then moving again... with no deceleration. This can be solved with some lerping in the scroll actions (tutorial)
B
17
S
8
G
4
Posts: 473
Reputation: 6,191

Post » Fri Jan 31, 2014 11:03 am

I would do it Something like this
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Fri Jan 31, 2014 11:32 am

@LittleStain beautiful piece of work. I am going to add this to my game, thank you!
B
56
S
15
G
13
Posts: 826
Reputation: 17,665


Return to How do I....?

Who is online

Users browsing this forum: Artcadev, brunopalermo, Euduardo, Jackriduk, Yahoo [Bot] and 30 guests