Unity 2D Player RESPAWN Tutorial | Unity 2D Platformer Tutorial #8

Поделиться
HTML-код
  • Опубликовано: 27 сен 2024

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

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

    your channel should definitely have more subscribers! you make simple and to the point tutorials that are always helpful, thank you!!

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

      glad you think so, thank you so much 😊❤

  • @seanryan2412
    @seanryan2412 Год назад +2

    best respawn tutorial i've found, thank you very much!

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

      Glad it helped! thank you so much 😊

  • @babyph65
    @babyph65 4 месяца назад +3

    you should not skip things that you did we cant figure it out

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

    Best Tutorial i've ever seen,thanks a lot

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

    МУЖИК СПАСИБО, дякую ♥♥♥, thx)

  • @daveangeloabella6752
    @daveangeloabella6752 Год назад +2

    I am still waiting for your video about the die particle. Keep up!

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

      So so sorry ,
      I'm busy a little this month, but I'll share the video for you soon.
      Thank you so much 😉

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

    Would be amazing to make a tutorial with health bar😊

  • @vunguyenleanh1515
    @vunguyenleanh1515 22 дня назад

    my pivot setting is Bottom Left but the pivot still at center, help

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

    thank you so much you saved me😭😭😭😭❤❤❤

  • @Mezian.7s
    @Mezian.7s Год назад

    Thanks man the video was very useful

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

      Glad to hear it! Thanks a lot 😊

  • @itspotataman3628
    @itspotataman3628 25 дней назад

    how do i make it so it spawns in a specific pos?

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

    Hello Murat how to make flashing screen and dying particle because I got stocked there. Thanks for Tutorial anyway

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

      Hello and thank you 🙏
      I'm create animation for white flashing screen.
      And created die particle by using particle system.

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

      @@RehopeGames I created the animation and the particle but i didn't know how to put them in the script and Unity please put a video ,it's better

    • @yaokabanzai158
      @yaokabanzai158 5 месяцев назад +1

      @@thepresidentgaming404 решил проблему?

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

      ​@@thepresidentgaming404 ikr, i hate when he does this

  • @Taxes_Gov
    @Taxes_Gov 3 месяца назад +1

    hlo murat/rehope games
    for me the script:
    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    public class GameController : MonoBehaviour
    {
    Vector2 startPos;
    private void Start()
    {
    startPos = transform.position;
    }
    private void OnTriggerEnter2D(Collider2D collision)
    {
    if (collision.CompareTag("Obstacles"))
    {
    Die();
    }
    }
    void Die()
    {
    Respawn();
    }
    void Respawn()
    {
    transform.position = startPos;
    }
    }
    isn't working and when my character gets destroyed by the obstacle, It doesn't respawn, please HELP ME!

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

    Please make a video for die particle and animation

  • @MilanToabs
    @MilanToabs 6 месяцев назад +2

    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    public class GameController : MonoBehaviour
    {
    Vector2 startPos;

    private void Start()
    {
    startPos = transform.position;
    }
    private void OnTriggerenter2D(Collider2D collision)
    {
    if (collision.CompareTag("Obastacle"))
    {
    Die();
    }
    }
    void Die()
    {
    Respawn();
    }
    void Die()
    {
    transform.position = startPos;
    }
    }

  • @FloppaTheCatVR
    @FloppaTheCatVR 5 месяцев назад +1

    just put the script in description

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

    Great video! but I have one problem, when I walk into the spike going left my character respawns but then the animation I have is backwards when I walk forwards. do you have any reason why?

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

      I had that problem too, you can find the solution in this updated script, my friend.
      drive.google.com/file/d/186zkqzJrCxsKszFprDUveRWc05QfAIOO/view?usp=share_link

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

      and thank you 😊

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

      @@RehopeGames Hi, thanks for the help, but I use a different movement script, is there anyway to fix this without using the same script?

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

    Sir plz upload a die particle and animation detailed video

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

      I have noted your request.
      Thank you for your interest 😊

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

    this is great until i got to the part where you make the shadow disappear when you die so i copied the code but every time i died i got big and i dont know why.

    • @RehopeGames
      @RehopeGames  Год назад +2

      I will share all project soon, You can check it with the project

  • @Groleyn
    @Groleyn 8 месяцев назад +1

    whats the script

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

    3:56 the problem is that the player cant move when you respawn

  • @voloranic9920
    @voloranic9920 11 месяцев назад +1

    go back to the sikript again

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

    Thanks for tutorial! Just keep going man!👍🏻🙂

  • @IM-ws5if
    @IM-ws5if Год назад +1

    Please can you create such a "Fair n Square Game" I really want to know how to create it

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

      Yes I can, Actually you can too 😊

  • @RTPcanadaGames
    @RTPcanadaGames 8 месяцев назад +1

    wonderful.! thank you so much. i have learned alot

    • @RehopeGames
      @RehopeGames  8 месяцев назад

      Thanks a lot, I'm glad hear that 😊

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

    can someone help me theres a problone and i cant fix it... it says : Assets/GameController.cs

  • @yaokabanzai158
    @yaokabanzai158 5 месяцев назад

    Я так понимаю вы перезапускаете персонажа, но не всю сцену?.. А как сделать чтобы после смерти перезапускался весь уровень??

    • @regard2503
      @regard2503 4 месяца назад

      use SceneManager.LoadSceneAsync(SceneManager.GetActiveScene().buildIndex + 1);