#Spawn in previous room if dying after room transition

131 messages · Page 1 of 1 (latest)

celest warren
#

Hello, I'm working on a speedy portion of my map, and want the player to respawn in the previous room if they die after transitioning to the next room and not landing on safe ground, similar to what is done frequently in mauve. any tips?

<@&673391557939953684>

#

weird q I know, if i can offer any clarification lmk

robust prism
#

so simply move the spawnpoint of the 2nd room to the same position that the spawnpoint of the 1st room is

#

upon dying in the 2nd room the player will instantly retransition back to the first room

#

then, you can add a change respawn trigger to the area that you consider safe ground (presumably the floor in the 2nd room at the end of the speed chain)

celest warren
#

ooooh

#

let me try that

#

its killed me upon respawn lol

#

might be a save issue one sec

#

ill record a clip

#

unless u knoww whats happening

robust prism
#

hm

robust prism
#

after entering 2nd room

#

and dying

celest warren
robust prism
#

you get stuck in an infinite loop of instantly dying?

celest warren
#

the last one lol

#

yep

robust prism
#

oh ok so thats um

rancid warren
#

yea i don't think this'll work with the rooms shaped like that

robust prism
#

ok i had a different room layout in mind

#

im not sure how to stop the void from instakilling you

celest warren
#

lollllll

robust prism
#

hm

#

alternatively you can just uh

rancid warren
#

i think what you can do instead is have the default spawn point inside a solid or something and put a teleport trigger that puts you at the previous room

robust prism
#

^ but to make things simpler just put a spike lol

#

like uhhh

#

lemme draw it

#

place the respawn point for the 2nd room in that topleft corner of the 1st room

#

and just put a spike over that respawn point

#

so upon dying in the 2nd room, the player will instantly go back to the first room, die, and then respawn at the bottom right

celest warren
#

like so?

robust prism
#

yeah

#

that should work

rancid warren
#

i hate that lol

robust prism
#

if it doesnt kill the player you ccan move it up a pixel or two

celest warren
#

oof

#

yeah its jank

robust prism
#

WAIT

celest warren
#

i wonder if there's a helper for this

robust prism
#

wait

#

just undisable-down transitions lollll

celest warren
#

ohhhhhhhhhhh

#

yes

robust prism
celest warren
#

one sec

rancid warren
#

not sure that'll work great here

#

you can't really diagonally transition between rooms in any capacity

#

afaik

celest warren
#

it kinda wworked

#

is there a "focus on this room" trigger?

robust prism
#

is the camera doin smth weidr

celest warren
#

yeah it focuses on the first room in the map, before the first room in the clip, and when i jump it brings madeline into the doorway

#

where the key block is

robust prism
#

ah ok

rancid warren
#

yeah that's what i mean by you can't transition diagonally

robust prism
#

ok so all the rooms are perfectly placed to prevent uh

rancid warren
#

if it's trying a downward transition you'll always get pushed within the current horizontal bounds of the room

robust prism
#

that from working

#

i guess

rancid warren
#

just do the teleport trigger thing tbh

celest warren
#

ill try it, and update if it works!

rancid warren
#

but it wouldn't solve the underlying problem of it putting you in the wrong room

robust prism
#

introducing an extra helper just to fix a room respawn is kinda weh but i do understand the frustration with a setup that kills the player twice 😭

#

that would be annoying to play

robust prism
# celest warren

also judging by what the rooms look like rn it looks like walking right from 2nd room respawn will softlock the game XD

#

just pointin it out in case you didnt know

celest warren
#

oh. is there a way to make a wall fade in there after walking in?

#

never done this before lol, first map

robust prism
#

im not sure how to do that tbh

#

what i do is like

#

a sideways jumpthrough behind the screen

celest warren
#

one way platform?

robust prism
#

but thats probably not good practice

celest warren
#

yeah

robust prism
#

it would also add another helper

celest warren
#

rq, how do you aadd the target of the teleport? i have the trigger, but it doesnt do anything lol

#

nvm

#

found it

rancid warren
#

just outside the screen

celest warren
#

one more q

#

thank you btw thats perfect

#

how do i get it to switch to the new respawn point

#

does the change respawn trigger have to contain the respawn point?

rancid warren
#

it just goes to the closest one by default when you touch the trigger

celest warren
#

but when i die it just spwans me in at that point lol

#

instead of going to the other point in the other room

#

argh

rancid warren
#

put the teleport thing closer to the transition

#

so it defaults to that spawnpoint when you enter the room

#

or if that's not feasible, use a respawn target trigger near the transition (which is distinct from a change respawn trigger, this one only works immediately after screen transitioning) and place the node by wherever the setup is

celest warren
#

ill try that out

#

thank yall so much for the help, this is aa weird issue. now i know that diagonal is bad lol

scenic shoal
#

I forget the exact name of them but if you search @viv into loenn it'll show things only from viv helper (technically any helper starting with viv cluelesseline )

rancid warren
scenic shoal
#

uh maybe?

#

if they are I can probably get the placements for them rq

#

target (place in the first room)

{
    {
        Color = "White",
        Depth = 5000,
        OutlineColor = "Black",
        ShowTexture = false,
        Texture = "VivHelper/player_outline",
        _fromLayer = "entities",
        _id = 13,
        _name = "VivHelper/InterRoomSpawnTarget",
        _type = "entity",
        flipX = false,
        forceFacing = true,
        tag = 1,
        x = 16,
        y = 96
    }
}

spawner (put in the rooms you want to take you back to the first, with no normal spawnpoint)

{
    {
        Color = "White",
        Depth = 5000,
        Flags = "",
        OutlineColor = "Black",
        ShowTexture = false,
        Texture = "VivHelper/player_outline",
        _fromLayer = "entities",
        _id = 12,
        _name = "VivHelper/InterRoomSpawner",
        _type = "entity",
        flipX = false,
        tag = 1,
        x = 24,
        y = 136
    }
}
rancid warren
#

wait what happens if there is supposed to also be a normal spawnpoint in the room though

#

like it's supposed to take you back but only up until you reach a certain point in the room at which point you should just respawn there normally

scenic shoal
#

I don't know quite how it works with other normal ones

#

might still work but I never tested it

rancid warren
#

also wait that's a different shade of purple than i remember your name being pausefrogelineatthephone

#

gg on the Mod But Better

celest warren
#

whoa

#

ty

polar swan
#

I'm so confused

#

sorry for ping but I had to grab someone's attention cryplant

charred pendant
polar swan
#

they're Ahorn only?

charred pendant
#

yep

polar swan
#

that's so sad

charred pendant
polar swan
#

ah that's a decent workaround

charred pendant
#

it won't show up correctly but it will be there

polar swan
#

thanks!

rancid warren
#

it also just so happens that another mod just added this separately #modding_updates message

polar swan
#

omg yay thanks for notifying