#How to make differents screens
1 messages · Page 1 of 1 (latest)
Got a reference?
You want a video to understand what I'm talking about?
Yeah, hit me with a timestamp
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 ...
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
Yeah but I don't know how to do it, I said switch cameras but it's what I think of first lmao
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
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
Oh wow, I see, how can I do that?
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
Oh yeah, it's a pretty good Idea, thanks
In a way, those are your screens!
I see, thanks you for that tip
No worries