Open in app

Sign in

Write

Sign in

Chelsea Cruise
Chelsea Cruise

26 Followers

Home

About

Feb 2, 2022

For Loops | C#

What it is: knowing exactly how many times you want to loop through a block of code, use the for loop instead of a while loop. Syntax for (statement 1; statement 2; statement 3) { // code block to be executed } Statement 1 is executed (one time) before the execution…

Gamedevhq

1 min read

For Loops | C#
For Loops | C#
Gamedevhq

1 min read


Jan 31, 2022

Switch Statements | C#

Use the switch statement to select one of many code blocks to be executed. Syntax switch(expression) { case x: // code block break; case y: // code block break; default: // code block break; } A Breakdown of the Switch Syntax: The switch expression is evaluated once The value of the expression is compared with the values…

Gamedevhq

1 min read

Switch Statements | C#
Switch Statements | C#
Gamedevhq

1 min read


Jan 27, 2022

If…Else Statements | C#

WHAT IT IS: If-Else statements allow you to create logic based on some conditions and they work very well with variables. - NOTE: If statements can only run inside of methods. …

Gamedevhq

2 min read

If…Else Statements | C#
If…Else Statements | C#
Gamedevhq

2 min read


Nov 17, 2021

How to set your game application up with a Quit button | Unity 2D

If you’re developing for web or PC, you’ll need a quit button so the user can exit your game without frustration. Here how to do it! In your GameManager script, we want to tell the game that when we press the escape key — quit application.

Gamedevhq

1 min read

How to set your game application up with a Quit button | Unity 2D
How to set your game application up with a Quit button | Unity 2D
Gamedevhq

1 min read


Sep 16, 2021

How to Use Post Processing | Unity 3D

Post Processing allows us to apply image effects and filters to our video games. It’s like a Photoshop for your game! To get started, go to Window > Package Manager > Scroll until you find Post Processing. Install the package if it’s not already.

Gamedevhq

2 min read

How to Use Post Processing | Unity 3D
How to Use Post Processing | Unity 3D
Gamedevhq

2 min read


Aug 25, 2021

Understanding Coroutines in Unity using C#

I will demonstrate a delay timer & I will showing the results in the console. First off, create an empty game object and call it Timer. Now create a C# script — call it whatever you’d like — I’m calling mine ‘Clock’. In the script, I’ll start by creating an IEnumerator called Delay.

Development

2 min read

Understanding Coroutines in Unity using C#
Understanding Coroutines in Unity using C#
Development

2 min read


Aug 10, 2021

How to load different scenes using script | Unity 3D

This is definitely something I always forget how to do. It’s a very simple process. Time to make a note of it ;) In your script, you will need to first add the UnityEngine.SceneManagement library.

Gamedevhq

1 min read

How to load different scenes using script | Unity 3D
How to load different scenes using script | Unity 3D
Gamedevhq

1 min read


Jul 2, 2021

Enemies: Astroid Explosion! | Unity 2D

Objective: Create an explosion sprite sequence when we shoot our Astroid. First, create a game object for your explosion. Then create a new animation file and add the sprite sequence.

Gamedevhq

2 min read

Enemies: Astroid Explosion! | Unity 2D
Enemies: Astroid Explosion! | Unity 2D
Gamedevhq

2 min read


Jul 1, 2021

Enemies: Creating the Astroid behavior | Unity 2D

Objective: Create a rotating effect for our Astroid. After placing the Astroid into our scene, make it prefab and create a new script for it. I’m calling mine simply, ‘Astroid’. To make it rotate, let’s check out how to do this by reviewing the Unity Documentation.

Gamedevhq

2 min read

Enemies: Creating the Astroid behavior | Unity 2D
Enemies: Creating the Astroid behavior | Unity 2D
Gamedevhq

2 min read


Jun 30, 2021

Creating Enemy Explosions | Unity 2D

Objective: Play a sequence of explosion sprites when our enemy has been destroyed in the game. First we need to create a new animation and add the explosion sprite sequence to our enemy prefab. If we look in the Animator window we can see that we have a new anim state for our enemy that is to be controlled by our explosion sequence.

Gamedevhq

2 min read

Creating Enemy Explosions | Unity 2D
Creating Enemy Explosions | Unity 2D
Gamedevhq

2 min read

Chelsea Cruise

Chelsea Cruise

26 Followers

Unity Developer, Software Engineer, Game Designer, Graphic Artist

Following
  • Tim Denning

    Tim Denning

  • Joseph Mavericks

    Joseph Mavericks

  • Jari Roomer

    Jari Roomer

  • Zulie Rane

    Zulie Rane

  • Nick Wolny

    Nick Wolny

See all (15)

Help

Status

About

Careers

Blog

Privacy

Terms

Text to speech

Teams