SamuZai
Pretty Fly Games

Pretty Fly Games

patreon


Pretty Fly Games posts

Code Access: Tutorial: πŸ“ UI Show distance traveled - How to make a Endless Driving Game in Unity Tutorial EP10

In this episode I'll show you how to add a UI which shows the distance traveled by the player which is used as the main score component. We'll cover how to get the canvas UI to rescale and fit with various resolutions and how to format the texts correctly. We'll also do some optimizations for canvases to make sure that things runs as fast as possible.

Download the the source code for the ...

View Post

Code Access: Tutorial: πŸ”¨Upgrade to Unity 6 - How to make a Endless Driving Game in Unity Tutorial EP9

In this episode I'll show you how to upgrade to Unity 6 and Cinemachine 3. It is a very short video but as I've gotten questions specifically about these upgrades I decided to just focus on them.

Download the the source code for the Unity project below πŸ‘‡

View Post

Code Access: Tutorial: πŸ”‰ Sound Effects & Mixers - How to make a Endless Driving Game in Unity Tutorial EP8

In this episode you will learn how to add sound effects to your game. We'll also go through how mixers works and why you should use them as early as possible in your game project. Using simple tricks like adjusting the pitch and volume you will learn how to make your game sound more interesting and appealing to your audience. The SFX used in this project can be downloaded from 2024-12-06 15:35:28 +0000 UTC View Post

I was interviewed by Photon and featured on their site

Check out the interview on https://blog.photonengine.com/how-photon-users-educate-each-other-enabling-the-community-on-youtube/

View Post

Code Access: Tutorial: Grabbing boxes and other active ragdolls - EP5 Active Ragdoll multiplayer

In this episode you will learn how pick up other objects using joints to provide a physics accurate carrying mechanism. This method will work on other rigid bodies including other active or passive ragdolls. Fixed joints will be used to achieve this but in Unity they are not always as fixed as you'd like so I'll show you how to make them a lot more stiff. It will also work online in multiplayer...

View Post

Code Access: Tutorial: Changing between active and regular ragdolls - EP4 Active Ragdoll multiplayer

In this episode you will learn how to switch between regular ragdolls and active ragdolls. This can be useful when knocking out your character so it becomes floppy and allows it to become a regular ragdoll. We'll also add a revive options which changes the ragdoll into an active ragdoll again. As a bonus we'll add a bit of sword fighting with the ability to parry blows with your shield.

D...

View Post

Code Access: Tutorial: How to upgrade from Photon Quantum 2.x to 3 (Multiplayer with Photon Quantum & Unity) EP7

In this episode you will learn how to upgrade your Photon Quantum 2 game to Photon Quantum 3. We'll walk you through the official upgrade process and cover the extra things you might need to do in order to successfully upgrade your Unity project. An example of this is resolving the namespace QuantumStaticTerrainCollider3D is missing. After completing this tutorial your project should work in Ph...

View Post

Code Access: Tutorial: Active Ragdoll Multiplayer EP3 (Adding online multiplayer)

In this episode we'll go through how to add online multiplayer to the game using Photon Fusion 2. You can use the same technique with any network framework as long as you can process the physics on the server/host side. The host will move the characters and will use physics and the information about the rotations on the joints is then sent to the clients which updates the characters.

Down...

View Post

Code Access: Tutorial: Active Ragdoll Multiplayer EP2 (Physical animations)

In this episode we'll go through how to add physical animations to your active ragdoll character. We'll use a technique where you use a regular animation and transfer the desired rotations to the joints which will act as muscles. This gives a good blend between animation and physics causing the active ragdoll character to react to impacts while still trying the best to walk according to the ani...

View Post

Code Access: Tutorial: Active Ragdoll Multiplayer EP1 (Offline ragdoll setup sort of like Gang Beasts)

In this episode we'll go through how to setup an physics based active ragdoll character which is controlled by physics. The setup we'll use is similar to what Gang Beast or Human Fall Flat uses. We'll cover how to use any rigged character to setup the joints required for an active ragdoll character controller and how to control the ragdoll character using the keyboard. Lastly I'll go through ho...

View Post

Code Access: Tutorial: Photon Quantum Multiplayer Unity EP6 (Network animations & Models) 🎨

In this episode we will replace the graphics with much nicer looking models from Kay Lousberg. We'll also add animations to our characters for walking, jumping and falling which will work in both local and multiplayer mode. Unity will read information from Quantum and feed the animator with information about movement speed etc. A new game mechanic is introduced, Dashing, with a dash meter so yo...

View Post

Code Access: Tutorial Photon Quantum Multiplayer Unity EP5 (Session/Server Browser) πŸ“ƒ

In this episode we will add a server/session browser where you'll be able to list all sessions with the ability to join a specific Photon Quantum session/room. We'll also cover how to fetch custom parameters from a room to find out which maps is used and you can use this to provide additional information for matchmaking etc.

Download the the source code for the Unity project below πŸ‘‡ View Post

Code Access: Tutorial Photon Quantum Multiplayer Unity EP4 (Quick play - Custom menu) πŸƒβ€β™‚οΈ

In this episode we will replace the Photon Quantum provided menu screen with our own. We'll also add a Quick play feature which lets players get into the action faster. The episode explains how to connect to the Photon Master Server (Photon Cloud), create or find a random room and how to launch the Photon Quantum game.

Download the the source code for the Unity project below πŸ‘‡ View Post

Code Access: Tutorial: Online multiplayer πŸ”« FPS Unity & Photon Fusion EP13 (Upgrade to Photon Fusion 2.0) ⚑

In this episode we'll cover how to upgrade your existing project from Photon Fusion 1.x to 2.0. We'll go through the changes you need to make to OnChange, Network Runner Handler and Network character controller prototype. After this you should have the details you'll need to upgrade your Photon Fusion 1.0 game to Photon Fusion 2.0. We'll also resolve the error which you might get when upgrading...

View Post

We have a result!

Seems like something with "Photon Fusion 2.0" is the winner, followed by "A new series".

Thank you so much for voting πŸ™

View Post

What tutorial/series should I work on next?

Time to place your votes on what I should cover in the next tutorial(s). Here is your chance to influence the direction of the upcoming videos.

(If you select "A new series covering something new" then please leave a comment on what you'd like to see)

You can also vote on the Discord server using this link 2024-04-03 19:21:32 +0000 UTC View Post

Code Access: AI cars - How to make a Endless Driving Game in Unity Tutorial EP7

In this episode we'll cover how to efficiently spawn AI cars using pools. We'll also implement a basic car AI. The AI cars will be able to detect other cars, avoid crashing into them and also be able to select which lane they should drive in.

Download the the source code for the Unity project below πŸ‘‡

You will need to install 2024-03-28 14:22:06 +0000 UTC View Post

Code Access: Exploding cars - How to make a Endless Driving Game in Unity Tutorial EP6

In this episode we'll go through how you can explode your car when you hit objects using Unity and Blender. The technique could be used to blow up anything such as houses, trees or other object in your game world. πŸ›‘ My blender skills are not the best so I'm sure that there are other videos that can explain bisect better but this works for me and hopefully you can follow along also πŸ™‚ With ...

View Post

Code Access: Making your game look good - How to make a Endless Driving Game in Unity Tutorial EP5

In this episode we'll go through how you can make your game look great in Unity instead of the bland and dull colors it has using the default settings. We'll tune the shadows, lightning and also add post processing (Tonemapping, Bloom, Color Adjustments) to make the graphics look amazing with vibrant colors. With few changes it really makes a big difference and will make your game look a lot be...

View Post

Code Access: Random content - How to make a Endless Driving Game in Unity Tutorial EP4

In this episode we'll go through how you add more content and also how you can easily randomize objects to create the illusion of more content. We will also add a fake horizon effect without curving the sections, this prevents large objects from just popping into view.

Download the the source code for the Unity project below πŸ‘‡

View Post

Code Access: Random Endless Level - How to make a Endless Driving Game in Unity Tutorial EP3

In this episode we'll go through how you generate the endless levels with a focus on high performance code that doesn't generate garbage and can run on weaker devices such as Nintendo Switch or mobile phones. We'll be adding endless sections which is pooled for performance and will also provide the option to add more variation to the game world.

Download the the source code for the Unity ...

View Post

Code Access: Chase camera & improved car handling - How to make a Endless Driving Game in Unity Tutorial EP2

In this episode we'll go through how you can easily add a chase camera using Unity cinemachine and even have it avoid obstacles by using the collider extension. We'll also add turning to the car so it doesn't just slide from side to side. The car handling is also improved with turn speed, max speed and in general better handling.

Download the the source code for the Unity project below πŸ...

View Post

Code Access: Game State - Photon Quantum Multiplayer Tutorial Unity EP3 πŸ”€

In this episode we will go through how you manage game states in Photon Quantum by creating a singleton. A simple count down system is added which also detect when the game should end. We'll use Unity UI to show the count down variable from Quantum and also a simple end game text. Then finally we'll add a trigger which acts as a finish place which players need to reach to win the game.

At...

View Post

Code access: How to make a Endless Driving Game in Unity Tutorial EP1: Setup & Car movement πŸš—

This is a new series were we will cover how to make an Endless Driving/Running game in 3D with destructible cars from scratch. The game will use a bit of procedural generation with pre-made section which are placed in a random order which greatly enhances the replayability.

In this episode we'll go through Unity setup and basic car movement.

Download the the source code for the Unit...

View Post

Happy Holidays πŸŽ„

🎁 This year most of my games are on major discounts on most platforms for the holidays so if you haven't already then please buy & play them. And if you do please leave a review as it helps me a lot the with Steam Discovery algorithm!  

https://store.steampowered.com/app/1264730...

View Post

Code Access: Photon Quantum Multiplayer EP2 (Camera Respawn Despawn) πŸŽ₯

In this episode we will react to Photon Quantum events in Unity and will add a Cinemachine camera that will follow the "local" player once the player joins. We'll also add support for respawn and despawn of players + the ability to have more than 6 players.

Download the the source code for the Unity project below πŸ‘‡

View Post

Code Acess: Photon Quantum Multiplayer EP1 (Setup + movement) ⚑

In this episode we'll add bots which will navigate through our levels with pathfinding using Nav mesh in a networked game. The code will be based on the players movement code so they AI will not cheat and we'll show you how to use nav meshes only without the need of using Navmesh agents which overrides how your bots will move etc.

Attached is the source code for the Unity project.

View Post

Code Access: Online multiplayer πŸ”« FPS Unity & Photon Fusion EP12 (bots & pathfinding with navmesh) πŸ€–

In this episode we'll add bots which will navigate through our levels with pathfinding using Nav mesh in a networked game. The code will be based on the players movement code so they AI will not cheat and we'll show you how to use nav meshes only without the need of using Navmesh agents which overrides how your bots will move etc.

Download the the source code for the Unity project below π...

View Post

Code Access: Surface grip - How to create a 2D Arcade Style Top Down Car Controller in Unity tutorial Part 16

Part 16 of the Top down car controller is now available on YouTube.

In this part of the series we'll go through how you can add surface materials like grass, sand, ice and oil slicks. Each surface type can have different attributes that affects the handling of your car and causes it to loose traction or gain traction. T...

View Post

Code Access: Online multiplayer πŸ”« FPS Unity & Photon Fusion EP11 (3rd person camera) πŸŽ₯

In this episode we'll add a 3rd person camera view using Cinemachine and virtual follow player camera. You'll be able to toggle between first player view and 3rd person view. We'll also cover how to perform aiming in 3rd person mode using ray casting from the host/servers as it differs from how you do it in first person. With this tutorial you'll be able to implement that Fortnite style camera ...

View Post