TouchScreenButton
Create touch-friendly buttons for mobile games. Supports press, release, and drag gestures with visual feedback.
2D
No shortcutBeginner7 min readQuick Reference
TouchScreenButton
Godot EngineKeyboard Shortcut
N/A
Where to Find
Scene dock — Create New Node > Node2D category
Best Used For
- ▸Create 2D game elements and environments
- ▸Build parallax scrolling backgrounds
- ▸Design UI components and HUD elements
Beginner-Friendly⏱ 15–30 minutes to master
Key Settings
Add:Shape:Visibility:Signals:
TouchScreenButton creates buttons optimized for touch input. It supports press, release, and drag events, making it ideal for mobile game controls like virtual joysticks and action buttons.
Where to Find It
Found under Node2D in Create New Node dialog.
How to Use
- Add: Add TouchScreenButton and set its Texture property.
- Shape: Define a touch shape (rectangle, circle) for the button.
- Visibility: Set Action and toggle Visibility Mode for the button.
- Signals: Connect pressed, released for game actions.
Pro Tips
- Use with a BitMapAlpha for irregular button shapes.
- Disable in editor to avoid interfering with UI design.