How to Access and Modify a Database From Unity


Accessing and Updating a Database

In this tutorial, we will learn how to interact with a database from Unity, using some simple but effective techniques.

After completing this chapter, you will be able to:

  • Understand basic database concepts.
  • Understand how online databases can be accessed through scripting.
  • Understand how to access a database from Unity.
  • Save and access information about a player.

Continue reading

How to Create an Infinite Runner or Platform Game in Unity

Creating and moving the main character

In this section, we will start by creating an infinite runner game, a classic game genre on mobile devices; this game will have the following features:

  • The player will have to avoid obstacles by jumping above them.
  • Jumps will be performed when the player presses a key (for the web versions) or when s/he taps once on the right side of the device’s screen (for the Android version).
  • The obstacles will come from the right side of the screen.
  • If the player hits one of the obstacles, the game will be restarted.
  • The player will have the option to pause the game.
  • The score will increase with time.

So, after completing this chapter, you will be able to:

  • Create a simple infinite runner.
  • Add simple controls to the main character.
  • Generate obstacles randomly.
  • Detect collisions.
  • Create a simple environment with basic shapes.

Figure 1: The final game

Continue reading

How to Create a Card Game in Unity

 

In this post, we will create a simple card guessing game where the player has to remember a set of 20 cards and to match these cards based on their value.

After completing this post, you will be able to:

  • Create a card game.
  • Change the sprite of an object at run-time.
  • Check when two cards picked by the player have the same value.
  • Shuffle the cards.

Continue reading

How to Create, Rig and Animate a 3D Character for Unity

In this section, we will go through some very simple steps to create the character that you will be using in Unity, including:

  • Using Mixamo, a free online software, to select a character for your game.
  • Animating your character in Mixamo.
  • Exporting your animated character so that it can be used in Unity.

So, after completing this chapter, you will be able to:

  • Select your own 3D character.
  • Select and apply different types of animations to your character.
  • Export your character and the associated animations so these can be used in Unity for your game.

Continue reading

A Quick Guide to C# (Part 1)

Introduction to C# programming

In this section, we will go through an introduction to C# programming and look at key aspects that you will need for your games, including:

  • C# Syntax.
  • Variable types and scope.
  • Useful coding structures (e.g., loops or conditional statements).
  • Object-Oriented Programing (OOP) principles.

So, after completing this chapter, you will be able to:

  • Understand key concepts related to C# programming.
  • Understand the concepts of variables and methods.
  • Know how and why inheritance can be applied to your games.

 

Continue reading

The New Book On Godot Engine is Out (RPG)!

 

The new book on Godot, called “Godot From Zero to Proficiency (Proficient)” is Out.

This book includes a lot of information on how to create an RPG with Godot.

So, if you were ever interested in advancing your skills with Godot and GDScript and creating an RPG, then that’s the book you should definitely get today.

Godot From Zero to Proficiency (Proficient) is on a promotional offer at only  $2.99 today

Continue reading

The New Book on Godot Engine is Out!

The New Book On Godot Engine is Out!

The new book on Godot, called “Godot From Zero to Proficiency (Foundations)” is Out.

This book includes a lot of information on how to master Godot’s interface and how to create an indoor and outdoor environment from scratch.

So, if you were ever interested in trying out Godot, then that’s the book that you should definitely get today.

Godot From Zero to Proficiency (Foundations) is on promotional offer today at only  $3.50.

>> Download Your Book here Today <<

Continue reading

Importing and Using Standard Assets With Unity 2020+

Why You Need To Read This Post

Since Unity 2019, the Standard Assets are no longer part of the Application, and instead, if you are trying to import them, you probably ran into compiling issues, making these assets impossible to use. This is the reason why I have created this post that will guide you step-by-step through the process of importing and fixing the Standard Assets even if you use Unity 2020+, so that you are able to use them in your project and, as a result, save you the time and the headaches.

What You Will Achieve After Completing These Steps

So after completing this short tutorial, you should be able to:

  • Import the Standard Assets.
  • Fix the Standard Assets (no coding involved).
  • Use the Standard Assets.

Continue reading

Unity from Zero to Proficiency (Proficient) is out today for $3.99 (promotional offer)

If you are struggling with RPG creation in Unity, this book should help. It includes 432 pages that painlessly take you through all the necessary steps to create your 3D RPG in Unity including a dialogue system, an inventory, a shop system, real-time combat, randomly-generated procedural levels, a quest system, along with intelligent NPCs. Along the way, you will also learn how to create systems that you can reuse in other games and that will speed up the development process.
Unity from Zero to Proficiency (Proficient) is available today on Amazon for $3.99 (promotional offer until Friday).
Hope this helps
https://www.amazon.com/dp/B07Z45N6J1

Books and Video Courses on Learning to Code through Video Game Creation

Hi there,

In the past years, I have been liaising with teachers  who wanted to introduce programming to their students through the creation of games; several teachers have been using some of my resources (books and video courses) and found that it had helped their students to get started with programming while enjoying the journey and using a free game engine called Unity.
Last November, I gave access to these resources to several teachers for free, so that they could use it for their classes, if they found these to be a good fit.
So, I am renewing this offer for those who did not see it then, and also for those who have developped an interest in teh use of games for learning recently.
The books include:
  • Unity From Zero to Proficiency Series: a series of 4 books through which students learn to create and export 3D worlds and 3D games, and learn to code in C# in the process.
  • Beginner’s Guides: a series of 4 books through which students learn to create and export 2D games, and learn to code in C# in the process. They will be creating platformers, card games, puzzles, word games, shooter games, and infinite runners.
  • Quick Guides: a series of 6 books where students avail of a quick and easy tutorial (60 minutes) to get started on a specific topic (C#, Artificial Intelligence,etc.)
  • JavaScript from Zero to Proficiency (Beginner): A book that introduces Javascript programming to students with no prior knowledge of programming.
  • C# from Zero to Proficiency (Beginner): A book that introduces C#  programming to students with no prior knowledge of programming;
The video courses include:
All the books and video courses include a practical approach with many hands-on activities (students will spend most of their time coding and building their game), checklists (so that the students can check their progress), quizzes (to check their knowledge), challenges (to put their skills into practice), FAQs, and lots of explanations (e.g., many screenshots for the books).
So I am giving away these books and video courses for free to 100 teachers throughout Europe on a first-come-first-served basis.
If you are interested in receiving these, please email me: learntocreategames@gmail.com or pfelicia@gmail.com
Also, I am aware that Unity may be quite demanding in terms of computer requirements for some schools, and I am planning on a series of books that introduce coding through the creation of games with JavaScript or Java so that itcan be used on less up-to-date computers; if this is a topic that you are interested in, please email me to let me know the topics that you’d like to see covered in this book; I will also send you a free copy of same when it is released.

Hope this helps,- Patrick