Setup for dynamic elevator floor buttons
Add a button scene, as well as a button scene. Each button has an Area3D to detect collisons; a two-row sprite sheet contains all of the numbers and their on/off state.
This commit is contained in:
parent
acb10d18a4
commit
189823e8bf
9 changed files with 219 additions and 0 deletions
19
scenes/floor_button.tscn
Normal file
19
scenes/floor_button.tscn
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
[gd_scene format=3 uid="uid://bw1kbbl3n83e8"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://8bw5fmr1vkjn" path="res://images/elevator_numbers.png" id="1_4clxj"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_4clxj"]
|
||||
size = Vector3(1.1594238, 1, 0.055664063)
|
||||
|
||||
[node name="FloorButton" type="Area3D" unique_id=265465826]
|
||||
|
||||
[node name="ButtonSprite" type="Sprite3D" parent="." unique_id=1628684586]
|
||||
billboard = 1
|
||||
texture_filter = 0
|
||||
texture = ExtResource("1_4clxj")
|
||||
hframes = 10
|
||||
vframes = 2
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="." unique_id=1160314093]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.361)
|
||||
shape = SubResource("BoxShape3D_4clxj")
|
||||
Loading…
Add table
Add a link
Reference in a new issue