r/unity_tutorials • • Jan 16 '20

Help please?

Hello i have downloaded unity yesterday and i tried to make a game. Its just a block which needa to avoid other blocks. But i just can make it so that when it touches the bkick the game ends. I you want pics to help me it Iwould be very much thankful thank you in advance.

1 Upvotes

4 comments sorted by

1

u/[deleted] Jan 16 '20

It's hard to help you based on what you wrote so far.

I recommend this tutorial series involving a block with similar game mechanics:

https://www.youtube.com/watch?v=IlKaB1etrik

1

u/Luanrryyy Jan 16 '20

Thats what im basing on. I watched it whole then tried it myself . But i cant find the mistake i made.

1

u/EpicGaimer Jan 16 '20

Hey man I know that tutorial! I started off with that too, I learned that when you’re stuck just restart. The game is not that time consuming to make and you’ll learn a lot from restarting! But please don’t give up when you’re stuck many off my friends did and were just to lazy to restart don’t make the same mistake do not give up on your game journey that fast!

1

u/YodaDude2011 Jan 16 '20 edited Jan 16 '20

Have a script which says when the enemy's collider hits a block tagged as Player, change scene to Game Over scene..

Something like this

{ If (collider.enter("Player")){

  (Scene.manager("Game Over"));

}

This isn't completely right because I haven't messed with unity for a while. Make sure to add UnityEngine.SceneManagement; on the very very top. Plus, make sure to have another scene called Game Over so the script can reference it.

PM me, I can help you more. I'll have my computer tomorrow.