Thunkable Docs
Click here to build your own apps!
Drag and Drop docs
Snap to Place docs
Search…
Snap to Place
👋
Welcome to Thunkable
👶
Getting Started
🆕
Create New Project
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
Assistant by Dialogflow
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)
Publish to Play Store (Android) with AAB
Publish as a Web App (PRO)
Generate Screenshots
🔎
Troubleshooting
📏
Intro to Spacing
🖼️ Intro to Sizing
🔤
Fonts
💾
Managing Storage
📰
Release Notes
🗄️ Release Notes Archive
📝
Bugs and Feature Requests
Powered By
GitBook
Motion
Program a sprite's speed and location
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.
Previous
Events
Next
Looks
Last modified
1yr ago
Export as PDF
Copy link
Contents
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