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

  • @TheGameGuy
    @TheGameGuy3 жыл бұрын

    Grab the Complete Project from my Patreon Page : www.patreon.com/posts/46461307

  • @lukasp.5363
    @lukasp.53633 жыл бұрын

    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

    @sonradanfransiz

    2 жыл бұрын

    Life saver comment, thanks a lot my friend, god bless you!

  • @TequilaSunsett

    @TequilaSunsett

    2 жыл бұрын

    Thanks a lot! This was exactly what I needed.

  • @user-pd5ny8iu5f

    @user-pd5ny8iu5f

    Жыл бұрын

    you are my life savior

  • @mexagrontoo

    @mexagrontoo

    Жыл бұрын

    thanks bro 😭

  • @christopherbennett6571

    @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.

  • @anacarolinegomes7647
    @anacarolinegomes76473 жыл бұрын

    Thank you!

  • @sheerazali5178
    @sheerazali51783 жыл бұрын

    Thanks bro

  • @gogulnegru2838
    @gogulnegru28383 жыл бұрын

    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

    @TheGameGuy

    3 жыл бұрын

    Thanks Gogul.. and ill definitely make more videos on Android games in the future

  • @ToadallyMimi
    @ToadallyMimi3 жыл бұрын

    how did you make that backtile?..

  • @Geckotr
    @Geckotr3 жыл бұрын

    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

  • @leewriter4656
    @leewriter4656 Жыл бұрын

    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

    @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.

  • @khemziegamer4790
    @khemziegamer47903 жыл бұрын

    Please make a video tutorial on that your trickshot game

  • @TheGameGuy

    @TheGameGuy

    3 жыл бұрын

    That's actually a pretty good suggestion. Thanks

  • @TheGameGuy
    @TheGameGuy3 жыл бұрын

    For the *Copy/Paste gang* 😜 Grab the assets from : thegameguy.net/resources.html

  • @user-jh9rj1fi6i
    @user-jh9rj1fi6i Жыл бұрын

    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

    @annenynketerpstra3519

    Жыл бұрын

    Where do I put this in the code?

  • @christopherbennett6571

    @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.