Unity 2D Tutorial How To Create Simple Board Game With Dice Rolling And Turn Based Movement Features
#UnityTutorial #SimpleUnityGame #UnityBoardGame
In this video we will create simple board game. We will be able to roll the 2d dice and game characters will perform moves one by one according to the number dice shows. “Win” sign appears showing who is the winner when one of the character reaches the finish.
Tired of wires? Here, thank me later.
Yootech Wireless Charger
amzn.to/3lDb9YT
TO BLAST! - My New Fun Relaxing Puzzle Game Available On Google Play Store
play.google.com/store/apps/de...
Consider purchasing my ULTIMATE UDEMY COURSE with great discount
www.udemy.com/how-to-make-gam...
If you like what I'm doing then you can support me through
www.patreon.com/alexanderzotov
or here
www.paypal.me/AZotov
Thank you)
Cool Free Font ChunkFive here www.fontsquirrel.com/fonts/ch...
You can download the whole project here drive.google.com/open?id=1bQ2...
What this video is about and what it can be used for also: unity 2d tutorial,
Unity Tutorial How To Create Simple 2D Board Game With Dice Rolling And Turn Based Movement Features, unity board game, unity board game tutorial, unity board, unity 2d board game, unity simple board game, how to make board game unity, unity board game movement, unity board game dice move, unity board game example, how to make board game in unity, board game, learn unity fast, unity tutorial, how to make games with unity, unity how to make game, unity how to make 2d game, not as good as brackeys but good as well.
Пікірлер: 246
Александр, здравствуйте! Подскажите, пожалуйста, а как изменить позицию игрока если он попал на определенный waypoint? Например, если waypointIndex == 5, игрок перемещается на позицию waypoint == 10. Понимаю как, но как реализовать не понимаю... Подскажите по возможности
@AlexanderZotov
5 жыл бұрын
Привет! Что-то типа if (transform.position == waypoints[5].transform.position) transform.position = new Vector2 (waypoints[10].transform.position.x, waypoints[10].transform.position.y);
@merser7643
5 жыл бұрын
@@AlexanderZotov к сожалению, этот код работает некорректно, как и мой) Когда его запускаешь, то игрок, если сумма движения
@merser7643
5 жыл бұрын
@@AlexanderZotovесли у Вас получится - отпишитесь, пожалуйста, а то я каждый минут 10 страницу обновляю) Очень на Вас рассчитываю)
@AlexanderZotov
5 жыл бұрын
Да, ерунду я какую-то написал. все намного проще. if (waypointIndex == 5) waypointIndex = 10; Эту строчку я вставил в скрипт FollowThePath в метод Move. Получилось так. private void Move() { if (waypointIndex
@merser7643
5 жыл бұрын
@@AlexanderZotov ))) Код снова некорректно работает))) Если фишка со стартовой позиции (waypointIndex == 0) перемещается на waypointIndex == 5, то она перемещается в указанную точку. Но если она останавливается перед ней, то на следующий ход фишка не двигается. Если не со стартовой позиции двигается, то снова баги. Не знаю, если Вам интересно, попробуйте в Вашей игре это реализовать, мозги Вам пудрить больше не буду. Спасибо
Exactly what I'm looking for... You start from simple scratch, very simple and direct explanation which is what I like... I've seen some other tutorials from different person and it is quite complex even in to start it...
@AlexanderZotov
5 жыл бұрын
Thanks a lot!
The perfect tutorial for what I'm looking for. I was afraid to make the game I wish. Keep it up!
Hoooray! Entire games again! Thanks a million!
Alexander, thank you! As usual very simple and genius scripts :)
Мне нравится читать как почти под каждым видео к тебе обращаются "Сир", звучит так по королевски!) Крутая обучалка как всегда!
@AlexanderZotov
6 жыл бұрын
Да, Сир - прикольное обращение :-)
This is what I was looking for. You made my day. This helps me a lot for my new game.
@AlexanderZotov
3 жыл бұрын
Happy to help!
Short and Good Tutorial are what people need. I honestly thank you for ur work !
@AlexanderZotov
4 жыл бұрын
Happy to help
Best tutorials in internet ! fantastic job !
@AlexanderZotov
5 жыл бұрын
Thank you very much!
@romeomeier1275
5 жыл бұрын
No this tut is way to fast, the script is not working why? simple Everyone else would type the Script during the actual tut. so it could be followed all along with typing. Even stop and rewind would not help. Its clear that this tut suposed to be rather 45min instead of 10. its to rushy and therefore sloby. Think of the new learning people, this suposed to be a beginning tut.Just becsuse the Game is cool does not mean the tut is Good. Sorry this tut ruined my day and caused too much frustration.
@AlexanderZotov
5 жыл бұрын
If YOUR script doesn't work doesn't mean that script from video doesn't work either (it works fine BTW). Tutorial is fast because I hate videos hour long about basically nothing with all of those "ammm...", " uhmmm..." and so on. "I think fast, I talk fast..." Remember where is it from? ;-)
@romeomeier1275
5 жыл бұрын
+Alexander Zotov it does seem while debugging in Visual Studio does not give me any Error Messages so there is hope but the Unity Consol does and it says "Primary constructor body not allowed error CS9010" Also the Move Speed Option is not been created in Unity in the Inspector bx the script. But I do thank you for Answering this! I just ment to say if its explained slower i could follow better and thats why mistakes happend i got into a rush following all along.
@AlexanderZotov
5 жыл бұрын
@@romeomeier1275 To catch your bugs it is better to see the whole project. BTW there is a link in the description so you can get this Board Game project with all of the assets and scripts absolutely for free. You can open it and examine it more carefully. And maybe you will find out what is wrong with your project.
Simple and nice. Well done!!
@AlexanderZotov
5 жыл бұрын
Thank you!
Thanks for the tutorial! Great stuff.
@AlexanderZotov
3 жыл бұрын
Happy to help
i need this ~wow thank you
@AlexanderZotov
5 жыл бұрын
You are welcome!
Thanks a lot for the tutorial !
@AlexanderZotov
5 жыл бұрын
You are welcome!
Great man with great tutorial
u re the best one for me in youtube
@AlexanderZotov
5 жыл бұрын
Thank you!
THANK YOU SO MOUCH FOR YOUR WORK
@AlexanderZotov
5 жыл бұрын
You are welcome!
Very informative video. Great work.
@AlexanderZotov
5 жыл бұрын
Thank you!
Well done!
I became a patreon, I believe in your work.
@AlexanderZotov
5 жыл бұрын
This is supergreat! Thank you very very much!
@AlexanderZotov
5 жыл бұрын
You're in credits from now on ;-)
Hi! Thanks for the tutorial - everything works fine, but would be great if you'll make another tutorial about these special fields (5, 10, 15, 20, 25, 30). Like 3 waypoints forward or 3 waypoints back. Thank you in advance.
@ebnezerdesigner9931
4 жыл бұрын
Help please , i need make this
Thank you so much for your tutorials they help so much! I am working on a claw machine like game and got the joy stick part working but I am having trouble with the button to lower the claw, any idea for this?
Excellent tutorial, very helpful! I am wondering how to make jump back player in waypoints positions, like traps. (moving back certain numbers of cells). Any Idea?
Simple and best , everyone should learn from this tutorial ... learner should learn and another creator should learn how to make simple and clear video in short.
@AlexanderZotov
3 жыл бұрын
Thank you very much!
Thanks!! How would one go about adding chutes and ladders functionality?
alex you rock
Hello! Thank you for your very kind explanation. Where do I get the waypointIndex value in the move() function in Follow the Path? The waypointIndex value is not updated after initializing the waypointIndex to zero at the beginning of the class.
Спасибо большое за проект!!прикольная штука)
Thank u so much sir i appreciate u r work
@AlexanderZotov
5 жыл бұрын
You are welcome.
@saurabhbansod6830
5 жыл бұрын
Alexander Zotov sir how can we the implement a function that when player1 hits the second player he will die and get to the 1st position
Hey! Love your work but i have one question, how to make that if the final waypoint is a specific number, i.e. 5 to jump to another number?
Hey nice video! Do you have a suggestion to make the waypoint is generated automatically from the start without we manually place and edit from inspector?
Thanks a lot Alexander. Just wanted to know how would this be handled for Android's different density screens?
Happy to see you again.Can you make a tutorial on login system like username & password like that, Can you suggest some tutorials videos for me Thanks
Hi love your videos,I usually am in 3d mode, could you do a video to a an upward force to my player on trigger.ie it's a ball rolling over a fan, so the air pushes it up..thanks
Thank u nice tutorial
@AlexanderZotov
5 жыл бұрын
You are welcome!
@jacquelinemaldonado176
5 жыл бұрын
please make an tutorial of word search :) thanks
Great Tutorial! How would we turn this board game into a unet turn-based multiplayer game?
Great tutorial Would you name the waypoints to add features like miss a go or go back 3 spaces etc?
@Misiogry
5 жыл бұрын
Have you ever find a solution for this? I tried messing with waypointIndex, but it's making a whole game a mess. Also is hard to add 3rd and 4th player with that "times -1" approach :(
Por fin algo que me sirve aunque por el idioma me cuesta comprender pero me doy una idea contigo
Hello! How do I change the script to roll two dices at the same time?
@thomasbouwmeester3197
3 ай бұрын
Did you figure it out, if so, how?
Hi Alex just a few questions I love your channel How do you make enemy's follow the player And how do you make the spawn rage of enemy's increase and at a specific time harder enemy's spawn And how do you make a shop system where you can have stuff in your inventory I really appreciate your help
thanx
Cool
Can you make a versus AI of this board game? Where in the computer will take the turn of the player 2 automatically once the player turn ends.
Thanks bro, but I'm wanna if the player move the position show the quiz and if true move+2 , any idea?
hello i have a question what if i want to add questions? for each tile if the player answer the correct answer it will give a spin but if not the player cant spin
thanks for the great vid :D is there any way to get the waypoints to loop? i mean, have the players keep going around the gameboard. because i made a square tiled gameboard.
@thomasbouwmeester3197
3 ай бұрын
Did you get it to work, if so, how?
@chrischains9947
2 ай бұрын
@@thomasbouwmeester3197 Don’t remember this vid but… Did something like: if (curr_waypoint + roll_result > waypoint.count - 1) { curr_waypoint = waypoint[0]} You’ll probably need to tweak this :)
nice . realy thanks alex . good man . plz use audio mixer for android game . and performance for android game . thanks you againe
Hi Sir, can you make a tutorial on how to do a simple scoring system for this board game?
How do I access the waypoints? In followthepath, there is the line "public Transform[] waypoints;" but how does this line access the collection of gameobjects? edit: had to drag all multiselected waypoints onto the inspector panel
If I wanted to make it so the player could choose to move forwards or backwards between waypoints, how would I do that?
hello, I'm trying to create a bingo game, I would like to, for example, draw 10 numbers and they appear on the screen as the cards, how to list the items in a List on the screen?
Hello Alexander, Thanks for video but I couldn't download you whole project because I want to check codes sine I am new to unity. Is it possible to recheck drive folder or provide codes on some different links. Have a good day.
Awesome tutorial, very clear and well explained! Thanks a lot! Is the code available anywhere?
@AlexanderZotov
4 жыл бұрын
Yes, it's by the link in the description.
Can you make this but for 3D? Or can I use this on 3D? Please for some hel
We want more videos!!!!
@AlexanderZotov
6 жыл бұрын
Me too. I'm on vacation now. Next season is coming ;-)
@random_precision_software
6 жыл бұрын
Alexander Zotov thank you. Your a breath of air in the unity tutorials. You give every major thing in a game you need. Some 3d stuff would be appreciated. Ie. Homing missiles?
Thank you for the tutorial! How can I do to the player return to the last waypoint? Like if it's in waypoint 12 and return to 11. I'm trying to change the waypointIndex to -=1 and tried changing diceSideThrown too, but it's not working. Greetings!
@Misiogry
5 жыл бұрын
Did you happened to find solution? I first try this myself, and unfortunately changing waypointIndex is making certain fields impossible to pass :(
@Ricksonk
5 жыл бұрын
@@Misiogry No, I didnt :(
thank you for the project source
@AlexanderZotov
4 жыл бұрын
You are welcome!
Greatfull for this video ❤️, Having one doubt - How can we do this for 4 players how to switch turns. Bring that video. Keep up the good work!
@faidurrohman9631
11 ай бұрын
hi. did you find the solution??
Hello ihave problem with index of range can you give the solution with this error ?
Hey, I'm not sure whats going on, but the characters are not moving, I assume none of that part of the code is referenced, as it says it has no references. I did the code completely how you did it, and named everything on unity the same as you did. Anyone able to help me?
Отличный туториал не могли бы вы сделать в следующим видео про рыбалку в 2d варианте? Спасибо за ваш труд.
@_aralgames_1986
6 жыл бұрын
adlet elemesov Қазақсыңба?
@adletelemesov3786
6 жыл бұрын
иа
Hello Mr. Zatov i need really your help, i need make my player move forwad and back if she stop in 5, 10, 15... please
hello alexander zotov, when i put this if (waypointIndex == waypoints.Length) { waypointIndex = 0; } in your code, actually in move method, the character never stoping move, can i ask why? because i want to make simple monoply
@thomasbouwmeester3197
3 ай бұрын
Did you succeed in making monopoly?
Great tutorial. I'd like to know how to make each point on the board an Object, so it can contain attributes such as price, owner. I'm looking for building something like Monopoly game
@siisi4
Жыл бұрын
hello, the "Empty" that we named waypoints are considered gameobjects in Unity. You can put stuff on them like other GameObjects. If you want to put stuff on them, you can also work with collisions and conditions if player enters a zone. I hope it helped (even if it's little bit too late).
Helix Jump Tutorial, please... :)
Please help. My script is same but player1 & player2 only move first waypoint. After that Not move more. I have not error.
how to make that one that launches when one arrives at a waypoint
NullReferenceException: Object reference not set to an instance of an object GameControl.MovePlayer (Int32 playerToMove) (at Assets/GameControl.cs:70) Please help me, I'm getting an error.
Please advise if time allows it. I've integrated a restart button script, but once the scene reloads the players are still frozen. Can we loop the script somehow? I need a way to switch from gameOver to newGame. Thanks in advance, and way to go on this tutorial, it's just what I needed :)
@thomasbouwmeester3197
2 ай бұрын
Did you succeed? How?
@tealerosem
2 ай бұрын
@@thomasbouwmeester3197 Sorry no, I think I gave up.. I've been developing on Tabletop Simulator vs creating my own game in Unity. TTS is based in Unity but the sandbox / workshop mods make it so much easier in comparison to building a game from scratch. Good luck!
wo haben sie das Brettpiel gefunden
Александр,доброго времени суток!Как сделать тоже самое но с двумя кубиками? пока что не понял как кубик вообще взаимодействует с waypoints=)я еще мало об этом размышлял, так что если что извините за глупый вопрос=)Но буду очень благодарен если получу на него ответ!
can you complete the last step logic as well??? at last player is wining at any dice you roll that is not the real case.
@muhammedrashid4098
2 жыл бұрын
Ys plzz tell this answer
why are the sprites at right of board UI? Player doesnt interact with them at all? Yes I'm a beginner.
Супер!
@AlexanderZotov
6 жыл бұрын
Спасибо!
Can you make another tutorial of this in 3D
thank you can you make tutorial how to create game like monopoly
@AlexanderZotov
5 жыл бұрын
May be. Good idea.
I am not sure why, but loading from resources does not working when I set png's as images...
Sir can you pls explain how can i put admob reward videos in my app....cant find any legit video on this topic
hi can you help me by doing unity tutorial on how to insert quiz in board game
Daaamn it's what am searching for still working on it If you keep making games who people search for you'll get famous Am making ludo for two player and I literally just copied every thing and putted my players and board All done ✔!! @Alexander Zotov
@AlexanderZotov
3 жыл бұрын
Happy to help :-)
this code is based on 2 players but can you maybe explain how I can get 4 players. I have been struggeling because the code is made with a true and false and that is not possible for 4 players. Do you have a solution?
Hi, thank you for this great tutorial. However, I would like to know how to add an UI when players got to waypoint? Where should I add the code? Any reply would be deeply appreciated.
@user-yv7eh9xr9v
3 жыл бұрын
what do you mean with add an UI when players go to waypoint? what kind UI?
@tronicvaio
3 жыл бұрын
@@user-yv7eh9xr9v Thanks for the reply. I had fixed this issue by myself.
@SnayteLeRoi
3 жыл бұрын
@@tronicvaio how did you do
@tronicvaio
3 жыл бұрын
@@SnayteLeRoi Easy! Use Unity and C#
@SnayteLeRoi
3 жыл бұрын
@@tronicvaio thx this is the best advisor I could have hoped for
Hello can you please tell me the website were i can create this game,also i only know english language so please can you reply in english only, thanks a lot
i would like to know why my player doesn’t move at all like yours
how can you do this but with snake and ladders?
sir more videos pls
Hello there sir sorry I just have 2 more questions How much money have you wanted of unity ads? And do I have to make a certain amount of money on ads before until will start paying me?
Does anybody know how old yiu have to be to release your game?
Привет, не подскажите как открыть проект чтобы посмотреть на код конкретнее и разобраться с ним? Пробовал, но не получается найти программу в Стор чтобы взглянуть на код
Hi Alexander, whats up, u working on New super Tutorials? Or do u have a nice vacation, greetings tom
@AlexanderZotov
5 жыл бұрын
Yeah! I'm working on my glass of beer having great vacation ;-) Tutorials will come I promise!
Hi.. Is there any way to flip the player when going towards left???
@AlexanderZotov
4 жыл бұрын
Yes, I have a video on that.
@ashwithhari5809
4 жыл бұрын
@@AlexanderZotov I have seen that video and its been helpful. But i want to flip the character towards left while it automatically moves in -x direction as in the video.
hello? where i can get a unity app?
hey bro i want if one of the players move to waypoint 3 i want the player to posistion in waypoit 8 how can i do that ?
@shahfaisal8237
Жыл бұрын
Same question?? You done it or not?
Sir how to make shake and ladder game?
Александр, ты куда пропал?)
@AlexanderZotov
5 жыл бұрын
Отпуск! Скоро закончится. И начнется второй сезон ;-)
@TihonCT
5 жыл бұрын
Alexander Zotov ждем !)
@AlexanderZotov
5 жыл бұрын
Сам соскучился :-)
my stuff doesnt work after following urs, any assistance
Anytime about multiplayer games
I know i am years behind, but how would I get players to move, only after answering a question correctly?
you would know how to make a skip button please
where does the game control stuff go
how do I make the player return to zero waypoint? because I want to make a game like this. but the player cannot start from zero waypoint when finished. Please help me. thank you
@maulanayusufs.7272
5 жыл бұрын
I've been looking for a way to restart this game, but it always fails and the player continues to run until the point he finishes playing. not from zero when restarting the game