📐
Thunkable Docs
Build an AppDrag and Drop DocsSnap to Place Docs
Snap to Place
Snap to Place
  • 👋Welcome to Thunkable Docs
  • 👶Getting Started
    • Signing In
    • Your Thunkable Projects Page
    • Tutorials
    • Live Test your App
  • 🆕Create New Project
    • Project Settings
    • Project Assets and Sizes
  • Thunkable Sample Projects
  • Public Gallery of Projects
  • 🛠️ Components
  • 🔘User Interface
  • Button
  • Label
  • Text Input
  • List Viewer
  • Web Viewer
  • Switch
  • Slider
  • Alert
  • Loading Icon
  • Date Input
  • Time Input
  • PDF Reader
  • Rating
  • 📊Data Viewers
  • Data Viewer List
  • Data Viewer Grid
  • Custom Data Viewer Layout
  • Data Sources
  • 📐Layout
  • Top Tab Navigator
  • Bottom Tab Navigator
  • Stack Navigator
  • Drawer Navigator
  • Screen
  • Row
  • Column
  • 📷 Image
  • Image
  • Photo Library
  • Camera
  • Barcode Scanner
  • Image Recognizer
  • Animation by Lottie
  • Video
  • Video Recorder
  • 🗄️ Data
  • Local Storage
  • Local DB
  • Realtime DB by Firebase
  • Airtable
  • Media DB by Cloudinary
  • File Picker
  • Web API
  • 🌍Location
  • Maps by Google and Apple
  • Location Sensor
  • 💲Monetization
  • Ads by AdMob
  • In-App Purchase
  • 🌐Sensors
  • Gyroscope
  • Magnetometer
  • Accelerometer
  • Timer
  • Bluetooth Low Energy
  • 🔊Voice
  • Sound
  • Text to Speech
  • Speech Recognizer
  • Translator
  • Audio Recorder
  • 🤝Social
  • Share
  • Email Sign In by Firebase
  • Push Notifications by One Signal
  • 🎮Gaming
  • Canvas
  • Sprites
  • Sprite Gallery
  • Canvas Label
  • 🤖Gaming Blocks🎮
  • Events
  • Motion
  • Looks
  • Direction
  • Sensing
  • Add & Remove
  • Stage
  • Canvas Label
  • 🤖Blocks
  • Control
  • Logic
  • Math
  • Text
  • Lists
  • Color
  • Objects
  • Device
  • Variables
  • Functions
  • "Any Component" Blocks
  • 🖥️ App Services & Emulators
  • 🔒App Data Privacy
  • ➕Make Copy
  • 📥Download
  • 📤Share
  • 📱Publish
  • Publish to App Store (iOS)
    • TestFlight Overview
      • TestFlight in Depth
  • Publish to Play Store (Android) with AAB
  • Publish as a Web App
  • Generate Screenshots
  • 🔎Troubleshooting
    • Login Issues
    • FAQs
  • 📏Intro to Spacing
  • 🖼️ Intro to Sizing
  • 🔤Fonts
  • 💾Managing Storage
  • 📝Bugs and Product Feedback
  • Snap to Place Hour of Code Videos
Powered by GitBook
On this page
  • Speed
  • Set Speed To
  • Change Speed By
  • Get Speed
  • Set Velocity
  • Position
  • Move Sprite To
  • Set Sprite Position
  • Get Sprite Position
  • Pointer
  • Get Pointer Value
  • Behavior
  • Set Draggable or Passable
  • Get Draggable or Passable
  • Stop All Sprites
  • Examples
  • Move Sprite to Pointer

Was this helpful?

Export as PDF

Motion

Program a sprite's speed and location

PreviousEventsNextLooks

Last updated 2 years ago

Was this helpful?

Speed

Set Speed To

Set the X or Y value for the sprite's speed to a particular value.

Change Speed By

Change the X or Y value for the sprite's speed by a specific amount.

Get Speed

Get the X or Y value for the sprite's speed.

Set Velocity

Set or change the sprite's velocity, by a given amount, in the pointing or moving direction.

Position

Move Sprite To

Move the sprite to the x and y location specified in the block

Set Sprite Position

Set the sprite's X, Y, Z or Angle value to a specific position.

Change the sprites X, Y, Z or Angle value by a given amount.

Note: Sprite angle is measured in degrees, so should be a value between 0 and 360.

Get Sprite Position

Get the sprite's current X, Y, Z or Angle value.

Note: Sprite angle is measured in degrees, so should be a value between 0 and 360

Pointer

Get Pointer Value

Get the X, Y, or Angle of the where the user tapped on the canvas

Behavior

On the canvas, it's possible to make a sprite either draggable or to have it fixed in position.

Similarly, it's possible for other sprites to pass through a sprite, or it can be made impassable.

Finally, if a sprite is moving, it's possible to programatically cause it to stop moving.

Set Draggable or Passable

Set the draggability or passability of the sprit

Get Draggable or Passable

Get draggability of the sprite

Stop All Sprites

Stop all sprites that are moving.

Examples

Move Sprite to Pointer

When the user clicks on the canvas these blocks will move the Sprite1 to the location that was touched.