This repository has been archived on 2025-09-12. You can view files and clone it, but cannot push or open issues or pull requests.
ld49/character/PlayerVisual.tscn
Ryan 66b0ff5bdd Adjust Icon Behavior
add_icon() now checks if the requested icon is different than the current icon that is displayed before removing and displaying the icon
added a method to set the variable tracking which icon is currently disaplyed
Moved spawn point for barista icons up by .25 to prevent icons from clipping into head
Adjusted when and what states will remove an icon from a customer
2021-10-19 03:14:29 -04:00

35 lines
1.2 KiB
Text

[gd_scene load_steps=6 format=2]
[ext_resource path="res://art_assets/barista_textured/baristaLowPoly.gltf" type="PackedScene" id=1]
[ext_resource path="res://sound/sfx_baristacoolingoff_v2.ogg" type="AudioStream" id=2]
[ext_resource path="res://character/Barista.gd" type="Script" id=3]
[ext_resource path="res://game/cup/Cup.tscn" type="PackedScene" id=4]
[sub_resource type="CapsuleShape" id=1]
radius = 0.4
[node name="PlayerVisual" type="KinematicBody"]
script = ExtResource( 3 )
max_speed = 2.0
[node name="baristaLowPoly" parent="." instance=ExtResource( 1 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.6, 0 )
[node name="CollisionShape" type="CollisionShape" parent="."]
transform = Transform( 1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0.3, 0 )
shape = SubResource( 1 )
[node name="CupReference" parent="." instance=ExtResource( 4 )]
visible = false
[node name="Tween" type="Tween" parent="."]
[node name="CoolingOffSfx" type="AudioStreamPlayer3D" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 )
stream = ExtResource( 2 )
unit_db = 9.0
bus = "Effects"
emission_angle_degrees = 90.0
[node name="Icon" type="Spatial" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.75, 0 )