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!
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?
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
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.
your channel should definitely have more subscribers! you make simple and to the point tutorials that are always helpful, thank you!!
glad you think so, thank you so much 😊❤
best respawn tutorial i've found, thank you very much!
Glad it helped! thank you so much 😊
Thanks for tutorial! Just keep going man!👍🏻🙂
Best Tutorial i've ever seen,thanks a lot
Thank you so much 🙏
wonderful.! thank you so much. i have learned alot
Thanks a lot, I'm glad hear that 😊
I am still waiting for your video about the die particle. Keep up!
So so sorry ,
I'm busy a little this month, but I'll share the video for you soon.
Thank you so much 😉
МУЖИК СПАСИБО, дякую ♥♥♥, thx)
🙏
Hello Murat how to make flashing screen and dying particle because I got stocked there. Thanks for Tutorial anyway
Hello and thank you 🙏
I'm create animation for white flashing screen.
And created die particle by using particle system.
@@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
@@thepresidentgaming404 решил проблему?
@@thepresidentgaming404 ikr, i hate when he does this
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;
}
}
thanks
Would be amazing to make a tutorial with health bar😊
yes I'm gonna make it 👍
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!
Thanks man the video was very useful
Glad to hear it! Thanks a lot 😊
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?
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
and thank you 😊
@@RehopeGames Hi, thanks for the help, but I use a different movement script, is there anyway to fix this without using the same script?
you should not skip things that you did we cant figure it out
thank you so much you saved me😭😭😭😭❤❤❤
thanks a lot 😊
how do i make it so it spawns in a specific pos?
my pivot setting is Bottom Left but the pivot still at center, help
Please can you create such a "Fair n Square Game" I really want to know how to create it
Yes I can, Actually you can too 😊
Please make a video for die particle and animation
Я так понимаю вы перезапускаете персонажа, но не всю сцену?.. А как сделать чтобы после смерти перезапускался весь уровень??
use SceneManager.LoadSceneAsync(SceneManager.GetActiveScene().buildIndex + 1);
Sir plz upload a die particle and animation detailed video
I have noted your request.
Thank you for your interest 😊
why I can move when i respawn
can someone help me theres a problone and i cant fix it... it says : Assets/GameController.cs
Can you give me more detail ?
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.
I will share all project soon, You can check it with the project
3:56 the problem is that the player cant move when you respawn
why the player flipped after hitting the obstacle?
I don’t know
just put the script in description
whats the script
go back to the sikript again
😂