Skip to main content
‹ Back to Tutorials
Intermediate Unity

Unity Playmaker LeanTouch - Making an Easy Santa Sleigh Game

Dec 24, 2021
About this tutorial

In this tutorial, I will be making an easy Santa Sleigh game using Unity Playmaker and LeanTouch+. I'll use the LeanTouch Chase component to make the Reindeer move slightly faster than the sleigh. I also set up a present prefab that will generate the presents on screen. Then overall will be able

Written Guide

This holiday tutorial uses Lean Touch and Playmaker to build a Santa sleigh game where you drag the sleigh around the screen to collect presents. The scene already has drifting clouds, a spinning present prefab that moves toward the camera and self-destructs, and a tagged present. The new work is touch-drag movement with trailing reindeer, a present spawner, and a scoring game manager with sound.

Set up Lean Touch dragging

Add a Rigidbody to the sleigh with Use Gravity unchecked, then add a Lean Touch object plus a simulator so mouse drags register as touches. On the sleigh add Lean Chase with dampening around 2 and a Lean Multiple Update that, on a world Vector3, calls Lean Chase Set Position with screen depth set to Auto Distance. This lets you drag the sleigh smoothly toward your finger.

Add trailing reindeer

Give each reindeer a Lean Chase with progressively higher dampening so they lead the sleigh, starting around 3 and climbing through values like 6, 11, and 17 as you duplicate them, plus the same Lean Multiple Update set position behavior. Offset the lead reindeer on X by about 0.7, and duplicate a second column at negative 0.7, so the team spreads out in front and reacts a beat ahead of the sleigh as you drag upward.

Spawn presents at random positions

The spawner FSM grabs a random float between negative 5 and 5 for X and another for Y, updates its own position from those, spawns a present prefab at that point, then waits a random four to eight seconds before looping. Each present therefore appears in a different part of the sky and drifts toward the player.

Score collisions and play sound

On a game manager FSM, add a Trigger Event on the sleigh that, on trigger enter with the present tag, sends an add to score event and stores the collided object. In the Add To Score state, Int Add one to a score variable, convert it to a string, and push it into a TextMesh Pro score anchored at the top center, then Destroy Object on the stored present. Add a Play Sound with a present-collect clip for feedback, loop back to keep detecting, and you have Santa flying through the clouds racking up points.

Unity tools by Bliz Studio
Built for our own games — now on the Asset Store

Multi Tag — unlimited hierarchical tags for any GameObject. Hierarchy Pro — style your whole hierarchy with rules. Made by a Unity dev, for Unity devs.

Explore our Unity assets →