Stuart's Pixel Games

Tutorials | Game Design | Programming | Art | Games

Menu

Skip to content
  • Home
  • News
  • Tutorials
    • How To Program
    • Unity
      • C# – Unity
      • General Unity
    • C# – Raw
    • Puzzle Script
    • C++
    • Fusion
    • Art
  • Game Design
  • Resources
  • Games
    • Browser Games

C# Unity

How To Make A Custom Mouse Cursor – Unity

This is a quick guide on how to make a 2D, custom mouse cursor in Unity, from making the texture, getting it into Unity, and then actually using it in your game.

2 weeks ago February 15, 2021 in C# Unity, General Unity, Tutorials, Unity.

How To Detect Any Key Press But Ignore Mouse – Unity C#

This shows you how to check if any key key is being pressed on the keyboard and NOT the mouse in the correct way. There are some incorrect methods shown on the internet elsewhere.

August 13, 2020 in C# Unity, Tutorials.

How To Not Destroy Objects Between Scenes – Unity C#

This tutorial teaches you how to keep game objects from being destroyed when loading a new Unity scene. It will preserve them between multiple scenes.

August 5, 2020 in C# Unity, Tutorials, Unity.

How To Do Secure Saving with Binary – Unity C#

This tutorial shows you an easy, secure way to save and load your games data, converting it to binary (machine code), to make it hard for players to modify your data.

July 26, 2020 in C# Unity, Tutorials, Unity.

How To Change Sprites Colour Or Transparency – Unity C#

If you’ve ever wanted to write a script that could make your sprite flash a different colour or turn them transparent in Unity, there’s an easy way. The following code is C#. Sprite Renderer You’re sprite is contained in a component called the Sprite Renderer. Now if you click on “Color”, you can manually change…

February 19, 2019 in C# Unity, Tutorials, Unity.

How To Do 2D Top-Down Movement – Unity C#

This post describes how to create a simple movement for a 2D top-down game, and it assumes that the reader is a beginner in such topics.

June 24, 2018 in C# Unity, Tutorials, Unity.

How To Do Vector MoveTowards – Unity C#

A common task is moving one object towards another position in Unity. Assuming you want constant, linear speed, there are two methods I will discuss: Lerp and MoveTowards.

June 21, 2018 in C# Unity, Tutorials, Unity.

How To Get All Of An Object’s Children – Unity C#

If you’ve ever wanted to get all of the children attached to a Unity GameObject and turn them into an array, there is a simple way to do it. This tutorial shows you how to do it in simple C# code.

August 2, 2017 in C# Unity, Tutorials, Unity.

How to do For Each Loops in – Unity C#

For each loops in C# and Unity go through every element in an array or storage container and they are simple to write. Let me show you how.

March 27, 2017 in C# Unity, Tutorials, Unity.

PayPal donations help give time to creating content for this blog and its running costs. Thank you :)

Follow Stuart's Pixel Games on WordPress.com

Browser Games

Blog Views

  • 168,908

About

I make games and write about game development.

Categories

Archives

PayPal donations help give time to creating content for this blog and its running costs. Thank you :)

Blog at WordPress.com.
Cancel

 
Loading Comments...
Comment
    ×