Screen stage-scrolling at a constant rate? (.gif included)

Just started using Construct 2? Post your questions here

Post » Wed Jan 28, 2015 4:15 pm

Message: General J can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
I'm trying to make screen transitions reminiscent of older Nes games like Mega Man.

When the player gets to the edge of the screen, they layout shifts to the next one.

Right now, this is what I have. My issue is: While the screen is transitioning, the closer the camera gets to finishing the transition, the scrolling speed begins to slow down. This makes a nice smooth effect, but it's not what I'm going for. It needs to be a constant speed all the way into the end of it.

(Linking this because the gif image is huge)

And here is the event sheet:


Additionally, how would you suggest I trigger disabling the Player movement and "slide" them into the new frame like in the old games instead of giving them free control during the whole transition? This part was giving me trouble as well.
Posts: 111
Reputation: 1,554

Post » Wed Jan 28, 2015 4:19 pm

That's what lerp does - if you want steady movement you gotta do something like if x < targetx do x = x+dt*400

Or possibly just use a moveto behaviour on a scroll helper object
Posts: 1,101
Reputation: 6,146

Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest