Added Basic Touch Controls
This commit is contained in:
40
ActionRPG-HeartBeast/touch_controls/TouchControls.tscn
Normal file
40
ActionRPG-HeartBeast/touch_controls/TouchControls.tscn
Normal file
@ -0,0 +1,40 @@
|
||||
[gd_scene load_steps=7 format=2]
|
||||
|
||||
[ext_resource path="res://UI/TouchButtons6.png" type="Texture" id=1]
|
||||
[ext_resource path="res://UI/TouchButtons3.png" type="Texture" id=2]
|
||||
[ext_resource path="res://UI/TouchButtons5.png" type="Texture" id=3]
|
||||
[ext_resource path="res://UI/TouchButtons1.png" type="Texture" id=4]
|
||||
[ext_resource path="res://UI/TouchButtons2.png" type="Texture" id=5]
|
||||
[ext_resource path="res://UI/TouchButtons4.png" type="Texture" id=6]
|
||||
|
||||
[node name="TouchControls" type="CanvasLayer"]
|
||||
|
||||
[node name="Left" type="TouchScreenButton" parent="."]
|
||||
position = Vector2( 4, 133 )
|
||||
normal = ExtResource( 4 )
|
||||
action = "ui_left"
|
||||
|
||||
[node name="Right" type="TouchScreenButton" parent="."]
|
||||
position = Vector2( 43, 133 )
|
||||
normal = ExtResource( 2 )
|
||||
action = "ui_right"
|
||||
|
||||
[node name="Up" type="TouchScreenButton" parent="."]
|
||||
position = Vector2( 23, 113 )
|
||||
normal = ExtResource( 5 )
|
||||
action = "ui_up"
|
||||
|
||||
[node name="Down" type="TouchScreenButton" parent="."]
|
||||
position = Vector2( 23, 153 )
|
||||
normal = ExtResource( 6 )
|
||||
action = "ui_down"
|
||||
|
||||
[node name="Attack" type="TouchScreenButton" parent="."]
|
||||
position = Vector2( 255, 146 )
|
||||
normal = ExtResource( 3 )
|
||||
action = "attack"
|
||||
|
||||
[node name="Roll" type="TouchScreenButton" parent="."]
|
||||
position = Vector2( 286, 120 )
|
||||
normal = ExtResource( 1 )
|
||||
action = "roll"
|
Reference in New Issue
Block a user