Intro to 3D Game Development

0 of 193 lessons complete (0%)

Scripting Part 3: Finishing the Game Loop

Testing: Trigger Functions

You don’t have access to this lesson
Please register or sign in to access the course content.

To test that these functions are all working the way we expect, we’ll need to be able to run through the trigger. If you have already pressed the Stop button, then pressing Play again will spawn your player, but your WASD keys or arrow keys will not control the player right away.

  1. Save your DigSpotScript, and save the game.
  2. Press the Play button to run the code.
  3. Click the Camera button in the top left corner to restore movement controls to your player character.
  4. Make sure the Dev Tools Console is open by pressing the F12 key, or Ctrl+Shift+I.
  5. Run over the Dig Spot, and watch how the events get logged to your console.