Create a Simple Checkpoint System with C# in Unity

提供方
Coursera Project Network
在此指導項目中,您將:

Set up a simple checkpoint system in a Scene.

Create and manage a countdown timer.

Save and load to the Registry with PlayerPrefs.

Clock1.5 hours
Beginner初級
Cloud無需下載
Video分屏視頻
Comment Dots英語(English)
Laptop僅限桌面

Checkpoints are prevalent in racing and adventure games. In adventure games, they provide a fallback point to which a player can return when the challenges of the game gets rough, and in racing, they can provide additional time to complete a circuit. In this one-hour, project-based course, you'll learn how to respawn a player to a saved checkpoint. You'll also update the saved location when a player reaches a new checkpoint, and save the checkpoint location to PlayerPrefs for easy reloading at the next gaming session. The guided project will introduce you to the following Unity concepts: - Transforms - Triggers - PlayerPrefs - String-manipulation

您要培養的技能

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

分步進行學習

在與您的工作區一起在分屏中播放的視頻中,您的授課教師將指導您完成每個步驟:

  1. Introduction and License Activation

  2. Create a Respawner Component

  3. Modify Respawner for Checkpoints

  4. Create a Timer Component

  5. Save Checkpoints to PlayerPrefs

  6. Load Checkpoints from PlayerPrefs

指導項目工作原理

您的工作空間就是瀏覽器中的雲桌面,無需下載

在分屏視頻中,您的授課教師會為您提供分步指導

常見問題

常見問題

還有其他問題嗎?請訪問 學生幫助中心