Thunkable Docs
Click here to build your own apps!
Drag and Drop docs
Snap to Place docs
Search…
Drag and Drop
👋
Welcome to Thunkable
👶
Getting Started
Signing In
Tutorials
Live Test your App
Your Thunkable Projects Page
🆕
Create New Project
Project Settings
Template Gallery
Assets
Figma Integration
🖼
Thunkable Sample Projects
🛠️ Components and Features
🔘
UI Components
Button
Label
Image
Text Input
List Viewer
Group
Web Viewer
Switch
Slider
Checkbox
Map
Animation by Lottie
Video
Loading Icon
Date Input
Time Input
PDF Reader
Rating
📊
Data Viewers
Data Viewer List
Data Viewer Grid
Data Sources
📐
Screens and Navigators
Top Tab Navigator
Bottom Tab Navigator
Drawer Navigator
Stack Navigator
Screen
💲
Monetization
Ads by AdMob
🎮
Gaming
Canvas
Sprites
Sprite Gallery
Canvas Label
🤖
Gaming Blocks 🎮
Events
Motion
Looks
Direction
Sensing
Add & Remove
Stage
Canvas Label
🤖
Core Blocks
Control
Logic
Math
Text
Lists
Color
Objects
Device
Variables
Functions
🌐
App Features
Gyroscope
Magnetometer
Accelerometer
Location Sensor
Speech
Sound
Share
Camera
Files
Email Sign In by Firebase
Push Notifications by One Signal
Alert
Timer
🚀
Advanced App Features
Web API
In-App Purchase
Bluetooth Low Energy
Assistant by Dialogflow
"Any Component" Blocks
🖥️ App Services & Emulators
🔒
App Data Privacy
➕
Duplicate your Project
📥
Download
📤
Share
📱
Publish
Publish to App Store (iOS)
Publish to Play Store (Android) with AAB
Publish as a Web App (PRO)
Generate Screenshots
🔎
Troubleshooting
💾
Managing Storage
📝
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