How to make a simple Puzzle Game in Unity | Rotate Puzzle Game | Part 1
Consider donating to help me keep this channel and website alive : paypal.me/supportTheGameGuy 💖
or Support me on patreon : www.patreon.com/the_game_guy 💖
Download the puzzle assets : opengameart.org/content/puzzl...
---- Description ----
In this video im gonna show you how to create a puzzle game where you need to connect the pipes by rotating them so that the water can flow through them. We are going to do everything from scratch and develop and design the whole puzzle logic that works dynamically for all levels without having to change any code.
--- Project Features ----
- Rotate puzzle pieces to connect the pipes together in the correct rotation.
- You can add as many pieces as you want without changing any code.
- When you connect all the pipes together you win the game.
Also this complete will be available for free to download after the second part of this video as We Have Hit 1000 Subscribers. 😁
Thank you all for the love and support.
Also check out these awesome videos :
How to play test your Game by Brackeys :
• HOW TO PLAYTEST!
Adding new weapons to my game by Dani :
• Adding New Weapons to ...
Wierdest Mobile game ads by Dani :
• The WEIRDEST Mobile Ga...
Making a lowpoly 3d car race game in unity by Imphenzia :
• Low Poly Racing - Maki...
Understand your AI Tensorboard :
• Understand your Unity ...
Music: www.bensound.com 🎵
Пікірлер: 24
Grab the Complete Project from my Patreon Page : www.patreon.com/posts/46461307
use this if you have some problems with detecting correct angles transform.Rotate(0, 0, 90); transform.eulerAngles = new Vector3(0, 0, Mathf.Round(transform.eulerAngles.z));
@sonradanfransiz
2 жыл бұрын
Life saver comment, thanks a lot my friend, god bless you!
@TequilaSunsett
2 жыл бұрын
Thanks a lot! This was exactly what I needed.
@user-pd5ny8iu5f
Жыл бұрын
you are my life savior
@mexagrontoo
Жыл бұрын
thanks bro 😭
@christopherbennett6571
Жыл бұрын
Where in the code do you put this? EDIT: Never mind, I found it. You replace: transform.Rotate(new Vector3(0, 0, 90)); With the code provided from the OnMouseDown in the PipeScript.
Thank you!
Thanks bro
Make more videos on Unity for Android games ,I love your videos ❤️❤️❤️i found on your channel what i couldn't find on 4 other game dev channels ..huge fan ❤️😁
@TheGameGuy
3 жыл бұрын
Thanks Gogul.. and ill definitely make more videos on Android games in the future
how did you make that backtile?..
this is my 2nd time tryin this tutorial. I copied your script but the pipes are changing position randomly in addition to the rotation. Sometimes one pipe moves onto another one
I'm looking for a way to make the pipes inactive to touch once the pipes are correctly arranged and the player has won that level. Anyone have a suggestion?
@christopherbennett6571
Жыл бұрын
You could put a panel or an invisible game object (like a square with the Alpha set to 0) to appear over the game along with the "You Win!" message, once the player has won. That way they only click on the object or panel and not on the puzzle.
Please make a video tutorial on that your trickshot game
@TheGameGuy
3 жыл бұрын
That's actually a pretty good suggestion. Thanks
For the *Copy/Paste gang* 😜 Grab the assets from : thegameguy.net/resources.html
If you have some problems with detecting correct angles ,the main problem here is the precision of floating-point numbers.Try this: if (Mathf.Round(transform.eulerAngles.z) == correctRotation && isPlaced == false)
@annenynketerpstra3519
Жыл бұрын
Where do I put this in the code?
@christopherbennett6571
Жыл бұрын
@@annenynketerpstra3519 You replace: transform.Rotate(new Vector3(0, 0, 90)); With: transform.Rotate(0, 0, 90); transform.eulerAngles = new Vector3(0, 0, Mathf.Round(transform.eulerAngles.z)); from the OnMouseDown in the PipeScript.