# Trigger Interactions with Proximity Using the Distance Event (https://academy.spline.design/tutorials/trigger-interactions-with-proximity-using-the-distance-event)

> A video tutorial from the Spline Academy.

- Product: Spline 3D
- Level: beginner
- Duration: 5 min 44 s
- Published: 2025-03-22
- Video: https://www.youtube.com/watch?v=9U0l2_eKVMQ
- Part of: [Spline 101 | Build Your First Interactive Scene](https://academy.spline.design/collections/spline-101-build-your-first-interactive-scene.md)

## About this tutorial

In this tutorial, we explore how to create interactive events triggered by proximity using the distance event. 

We show how to make one object move toward another when they get close, and have that interaction automatically trigger an action, like playing an animation or sound effect. It’s a great way to create scenes that feel alive and responsive to what's happening around them.

Demo: https://app.spline.design/file/29466ae6-7e47-4edc-8198-0ce78b80eead

---

Discover more amazing creators and projects #MadeInSpline at https://community.spline.design/

## Chapters

- [0:00](https://www.youtube.com/watch?v=9U0l2_eKVMQ&t=0s) Intro
- [0:43](https://www.youtube.com/watch?v=9U0l2_eKVMQ&t=43s) Adding Game Controls
- [1:15](https://www.youtube.com/watch?v=9U0l2_eKVMQ&t=75s) Creating the Cube Animation
- [1:58](https://www.youtube.com/watch?v=9U0l2_eKVMQ&t=118s) Creating a Container Group
- [2:10](https://www.youtube.com/watch?v=9U0l2_eKVMQ&t=130s) Setting up the Distance Event
- [2:21](https://www.youtube.com/watch?v=9U0l2_eKVMQ&t=141s) Checking Distance Event Settings
- [4:23](https://www.youtube.com/watch?v=9U0l2_eKVMQ&t=263s) Mini-game Examples
- [4:58](https://www.youtube.com/watch?v=9U0l2_eKVMQ&t=298s) Tip: Adding Sound Effects

## Related documentation

- [How state-based animation works](https://docs.spline.design/interaction-states-events-and-actions/how-state-based-animation-works)
- [Distance Event](https://docs.spline.design/interaction-states-events-and-actions/events/distance-event)
