#How to make differents screens

1 messages · Page 1 of 1 (latest)

sudden swift
#

Hi, I am currently creating a 2D platforme inspiring by Celeste and I would like to do a screen gameplay like celeste. A camera for each screen and a pause game transition between cameras (and checkpoints at each beginning of screen but it's not for now). I don't know if my explanations are clear sorry if not 😅

toxic skiff
#

Got a reference?

sudden swift
toxic skiff
#

Yeah, hit me with a timestamp

sudden swift
#

Check when he's switching between rooms https://youtu.be/SJVkIafaS1M?si=3476n8kPpPVIN3Sa

A complete walkthrough of Chapter 1: Forsaken City of indie platformer Celeste from Matt Makes Games. Includes locations of all collectibles including all strawberries, the crystal heart (3:26 in video) and the B-Side unlock tape (6:37 in video).

NOTES

  • Chapter 1 contains a total of 20 strawberries. Strawberries don't count as collected until ...
▶ Play video
toxic skiff
#

It's just a single camera. All it does it lerp to the next screen when entering it, or you could look into cinemachine and use virtual cameras which will do it for you

sudden swift
#

Yeah but I don't know how to do it, I said switch cameras but it's what I think of first lmao

toxic skiff
#

I'd just do coroutines for the sake of learning them if you haven't already

#

Enter a new room -> disable/pause the controller -> invoke a coroutine to lerp the camera to the next position -> await till coroutine finishes -> enable the controller

#

To trigger the transition I'd just populate entry points with some boxcolliders then use some ontrigger logic to invoke the coroutine

stiff wind
#

Also to make life a lot easier, when you enter a new room, just spawn the tiles (same way you spawned the current room tiles) somewhere nearby in the scene

At the same time you regain control, you can also destroy the old tiles

sudden swift
#

Oh wow, I see, how can I do that?

stiff wind
#

I don't know the 2D tools all that well, but if you can save the room layout/content as a prefab, then you would instantiate that at some position
I second Mao's suggestion for coroutines, it's ideal practice

sudden swift
#

Oh yeah, it's a pretty good Idea, thanks

stiff wind
#

In a way, those are your screens!

sudden swift
#

I see, thanks you for that tip

stiff wind
#

No worries