Designing Traps with C# in Unity

Offered By
Coursera Project Network
In this Guided Project, you will:

Become familiar with how objects interact in Unity.

Become familiar with how to set up triggers.

Write a C# script to manipulate object properties.

Clock1.5 hours
BeginnerBeginner
CloudNo download needed
VideoSplit-screen video
Comment DotsEnglish
LaptopDesktop only

Traps come in different forms and mechanics. They are an ever-present nemesis in adventure and puzzle games and are varied and full of individual tricks that separate one trap from another. But with all its difference, all of it can be traced back to its basic mechanic of catching its prey. In this one-hour, project-based course, you'll learn how to set up traps, activate them and give the player an opportunity to deactivate them in different ways. You'll also learn the different ways of how objects can either collide and/or interact with each other in Unity and how we can construct a mechanic from it. The guided project will introduce you to the following Unity concepts: - Animation - Triggers - Colliders - Simple C# coding techniques

Skills you will develop

  • Video-game Development
  • C sharp (C#) Programming Language
  • Unity 3D
  • Unity
  • Application development

Learn step-by-step

In a video that plays in a split-screen with your work area, your instructor will walk you through these steps:

  1. Introduction and License Activation

  2. Set Up the Scene

  3. Activate a Trap with a GameObject

  4. Activate a Trap by Object Quantity

  5. Activate a Trap with a MouseClick

  6. Deactivate a Trap with Collision

How Guided Projects work

Your workspace is a cloud desktop right in your browser, no download required

In a split-screen video, your instructor guides you step-by-step

Frequently asked questions

Frequently Asked Questions

More questions? Visit the Learner Help Center.