How to Switch Levels with Trigger Area for 2D RPGs in Unity

Поделиться
HTML-код
  • Опубликовано: 5 июн 2024
  • Quick tutorial on level switching between one map and another when a player walks into a trigger area.
    Script pastebin.com/GknHBh2c
    ◢◤◣◥ My Latest Unity 2D GameDev Course ◢◤◣◥
    Make a 2D Platformer Character with State Machines in Unity 2020
    skl.sh/3lpWPQL
    ◢◤◣◥ Chris Recommends ◢◤◣◥
    Skillshare for Online Video Courses ►► www.skillshare.com/r/user/chr...
    ProtonVPN for Internet Privacy ►►go.getproton.me/SHDO
    ◢◤◣◥ See My Full Software Courses ◢◤◣◥
    christutorials.teachable.com
    www.udemy.com/user/chris-nava...
    www.skillshare.com/r/user/chr...
    ➣ Follow Me On
    RUclips ►► / darkskeletontuts
    Odysee ►► odysee.com/$/invite/@ChrisTut...
    Bitchute ►►www.bitchute.com/channel/hU2e...
    Pocketnet ►► pocketnet.app/christutorials
    Minds ►►www.minds.com/register?referr...
    Gab.ai ►► gab.ai/ChrisTutorials
    00:00 - What to Expect
    00:08 - Creating a Trigger Area for Level Switch
    01:40 - LevelMove Script
    03:17 - Checking Scene List for SceneBuildIndex
    04:10 - Player Tag
    04:38 - Testing
  • ХоббиХобби

Комментарии • 29

  • @ZomBeeDabadee
    @ZomBeeDabadee Год назад +12

    OH MY GOD THANK YOU SO MUCH!!!!!!
    I HAVE SPENT BLOODY HOURS UPON HOURS TRYING SEVERAL DIFFRENT TUTORIALS AND THIS WAS THE QUICKEST N EASIEST ONE THAT ACTUALLY WORKED OH MY GOD YOU ARE MY SAVIOUR

  • @Tae_Grixis
    @Tae_Grixis 2 года назад +3

    Your videos have been the most helpful to me by far. I started with the Unity 2022 crash course and I've been looking for a follow up video. These are a great help for that.

  • @gioeledallapozza5824
    @gioeledallapozza5824 2 месяца назад

    Easy and quick thank you !!

  • @Konslufius
    @Konslufius 10 месяцев назад +1

    Ok, I think I understand now how you can work with colliders. You must attach a collider to an empty Gameobject to "make it" exist in the world. Then you can attach a script to the empty and use the various collision methods, Unity provides. I was wondering why my tripwires were so hard to set up in the first place. They simply needed that empty body to simply exist.

  • @adamfoger4806
    @adamfoger4806 2 года назад +4

    Would you be able to post the update where you show how to bring the player along with you?

  • @luanha9002
    @luanha9002 Год назад +1

    thank you so much!

  • @_Garm_
    @_Garm_ 2 года назад +1

    Thank you, I like your new "bite size" tutorials :D

  • @Leonkenedipj
    @Leonkenedipj Год назад +1

    Thank you bro i love you

  • @Flin-bv2dk
    @Flin-bv2dk 6 месяцев назад +1

    I just wanna say thank you, Thank you very much! I just stayed hours and hours trying to make this, until I find your vídeo.

  • @CMParks10
    @CMParks10 9 месяцев назад +8

    Great video! Did you create the follow up video regarding spawning the character location in a new scene?
    I browsed through your videos and did not see it.

  • @liztheturtle7175
    @liztheturtle7175 Год назад +3

    I struggled making a a second scene cause Add Open Scene doesn't worked.
    if anyone got this problem, do it manually. Go to File click New scene, safe it in the scene folder then open the Build Settings and drag and drop your second scene :)

  • @anthonystrout1600
    @anthonystrout1600 Год назад +11

    I NEED A PART TWO PLEASE!!!!!

  • @panagiotiskotsias4496
    @panagiotiskotsias4496 Год назад +1

    I got a question. I want it to not execute the code when the scene is a specific name, so pretty much I want it to check if the scene name is "example" then not execute the code, else execute it. Please help :)

  • @PoogaleinthyManogaran
    @PoogaleinthyManogaran 11 месяцев назад +4

    What if a room has multiple entrance ?

  • @pcd6music
    @pcd6music Год назад +5

    is there a part 2 to this? i'm mainly struggling with position of the character in the new scene

  • @Osoclevergames
    @Osoclevergames Месяц назад

    Thank you

  • @The_official_memer
    @The_official_memer 7 месяцев назад

    tysm im trying to make a 2d platformer and this helped not a bot btw

  • @blitzluffy527
    @blitzluffy527 2 года назад +5

    so where the update ?

  • @HeadCrabHandler
    @HeadCrabHandler 2 года назад

    Great tutorial! I've been trying to figure this out for the last hour or so and you've come to the rescue! thanks :)

  • @game24tv
    @game24tv 10 месяцев назад +1

    Nice one
    Helps alot

  • @WhatAmIdoingWithMyLife973
    @WhatAmIdoingWithMyLife973 Год назад

    tysm

  • @dariustheotaku9073
    @dariustheotaku9073 6 месяцев назад +1

    you saved my class assignment ty

  • @Azzavhar
    @Azzavhar 4 месяца назад +1

    Thank you, Chris 😁😁

  • @CooingMaxito
    @CooingMaxito Месяц назад

    I was searching for videos on how to do this, because my own code didn't work.
    Turns out, I completely forgot that the OnTriggerEnter and Collider that I want, need to be 2d...
    I am has the stupid

  • @roommoor5240
    @roommoor5240 Год назад

    Thncyou

  • @blackcoffin6738
    @blackcoffin6738 3 месяца назад

    where part 2 ?

  • @venus159
    @venus159 Месяц назад

    ruclips.net/video/WdlvjD5xE7c/видео.html part two

  • @edithasd2806
    @edithasd2806 7 месяцев назад

    tysm