added player walking animation
This commit is contained in:
Binary file not shown.
File diff suppressed because it is too large
Load Diff
BIN
DoeEyedGirl/mdl_doe_eyed_girl_deary.png
Normal file
BIN
DoeEyedGirl/mdl_doe_eyed_girl_deary.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.9 KiB |
44
DoeEyedGirl/mdl_doe_eyed_girl_deary.png.import
Normal file
44
DoeEyedGirl/mdl_doe_eyed_girl_deary.png.import
Normal file
@@ -0,0 +1,44 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://t6tlddv1mbs6"
|
||||
path.s3tc="res://.godot/imported/mdl_doe_eyed_girl_deary.png-62726b8af996104356fdc1711433d7aa.s3tc.ctex"
|
||||
metadata={
|
||||
"imported_formats": ["s3tc_bptc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
generator_parameters={
|
||||
"md5": "bcded8e215ce6a250bf5f8c75b820138"
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://DoeEyedGirl/mdl_doe_eyed_girl_deary.png"
|
||||
dest_files=["res://.godot/imported/mdl_doe_eyed_girl_deary.png-62726b8af996104356fdc1711433d7aa.s3tc.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=0
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 4.9 KiB |
@@ -219,6 +219,34 @@ stream_2/stream = ExtResource("69_c5gvc")
|
||||
stream_3/stream = ExtResource("70_sewk0")
|
||||
stream_4/stream = ExtResource("71_n0bvw")
|
||||
|
||||
[sub_resource type="AnimationNodeAdd2" id="AnimationNodeAdd2_vkt85"]
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_vkt85"]
|
||||
animation = &"Stand"
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_dyah2"]
|
||||
animation = &"Walk"
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_dx4x6"]
|
||||
animation = &"HoldGun"
|
||||
|
||||
[sub_resource type="AnimationNodeBlend2" id="AnimationNodeBlend2_dx4x6"]
|
||||
|
||||
[sub_resource type="AnimationNodeBlendTree" id="AnimationNodeBlendTree_u2rve"]
|
||||
graph_offset = Vector2(-548.98816, 68.51785)
|
||||
nodes/output/position = Vector2(400, 80)
|
||||
nodes/Blend2/node = SubResource("AnimationNodeBlend2_dx4x6")
|
||||
nodes/Blend2/position = Vector2(0, 280)
|
||||
"nodes/Animation 2/node" = SubResource("AnimationNodeAnimation_vkt85")
|
||||
"nodes/Animation 2/position" = Vector2(-180, 320)
|
||||
"nodes/Animation 3/node" = SubResource("AnimationNodeAnimation_dyah2")
|
||||
"nodes/Animation 3/position" = Vector2(-260, 540)
|
||||
nodes/Add2/node = SubResource("AnimationNodeAdd2_vkt85")
|
||||
nodes/Add2/position = Vector2(200, 140)
|
||||
nodes/Animation/node = SubResource("AnimationNodeAnimation_dx4x6")
|
||||
nodes/Animation/position = Vector2(-154.88535, 110.967896)
|
||||
node_connections = [&"output", 0, &"Add2", &"Blend2", 0, &"Animation 2", &"Blend2", 1, &"Animation 3", &"Add2", 0, &"Animation", &"Add2", 1, &"Blend2"]
|
||||
|
||||
[node name="Hero" type="CharacterBody3D" unique_id=1918171232 node_paths=PackedStringArray("subviewport1", "camera", "gun_camera", "left_hand", "right_hand", "edit_tool", "carding_tool", "model", "interaction_raycast", "draw_pile", "hand", "discard_pile", "hud", "movement", "player_name_tag", "weapon_swap_timer", "editing_states", "fighting_state", "default_state", "ears", "place_card_audio", "swap_card_audio", "ready_audio", "unready_audio", "fullpower_audio", "zeropower_audio", "swap_off_audio", "swap_on_audio", "anim_tree", "anim_tree2", "weapon_pivot", "cassette", "left_hand_model", "gauntlet_model")]
|
||||
collision_layer = 2
|
||||
collision_mask = 37
|
||||
@@ -411,20 +439,26 @@ hero = NodePath("../../..")
|
||||
|
||||
[node name="Model" parent="." unique_id=1269374108 instance=ExtResource("16_0ehim")]
|
||||
|
||||
[node name="Skeleton3D" parent="Model/doe_girl/Armature" parent_id_path=PackedInt32Array(1269374108, 1532649165, 851796479) index="0" unique_id=24687068]
|
||||
[node name="Skeleton3D" parent="Model/doe_girl/Armature" parent_id_path=PackedInt32Array(1269374108, 1532649165, 75656979) index="0" unique_id=1520596520]
|
||||
bones/4/rotation = Quaternion(0.332303, -0.18204916, -0.5890503, 0.71375954)
|
||||
bones/5/rotation = Quaternion(-0.906193, -0.05188831, 0.023806162, 0.41899294)
|
||||
bones/7/rotation = Quaternion(-0.007778301, -0.004357032, -0.48717895, 0.8732566)
|
||||
bones/9/rotation = Quaternion(0.103601396, 0.0787555, -0.60002625, 0.78932434)
|
||||
bones/5/rotation = Quaternion(-0.906193, -0.05188832, 0.023806157, 0.41899294)
|
||||
bones/7/rotation = Quaternion(-0.0077783004, -0.0043570334, -0.487179, 0.87325674)
|
||||
bones/9/rotation = Quaternion(0.10360141, 0.07875549, -0.60002625, 0.78932434)
|
||||
bones/10/rotation = Quaternion(-0.35265866, -0.18703236, -0.4295865, 0.8100038)
|
||||
bones/11/rotation = Quaternion(-0.020328829, -0.007425959, -0.34303707, 0.9390725)
|
||||
bones/11/rotation = Quaternion(-0.020328823, -0.007425961, -0.34303707, 0.9390725)
|
||||
bones/14/rotation = Quaternion(-0.39763534, -0.26168856, 0.626134, 0.61754483)
|
||||
bones/15/rotation = Quaternion(-0.2017903, 0.01537974, -0.038131464, 0.97856534)
|
||||
bones/16/rotation = Quaternion(-0.0048455084, 0.0038656965, 0.59440565, 0.8041415)
|
||||
bones/18/rotation = Quaternion(-0.22720158, 0.019839184, 0.4623247, 0.856879)
|
||||
bones/23/rotation = Quaternion(-0.045133278, -0.11772485, 0.9614003, -0.24456768)
|
||||
bones/15/rotation = Quaternion(-0.2017903, 0.015379741, -0.03813146, 0.97856534)
|
||||
bones/16/rotation = Quaternion(-0.0048455074, 0.003865697, 0.59440565, 0.8041415)
|
||||
bones/18/rotation = Quaternion(-0.2272016, 0.019839177, 0.4623247, 0.856879)
|
||||
bones/23/rotation = Quaternion(-0.045133274, -0.11772486, 0.9614004, -0.24456768)
|
||||
bones/24/rotation = Quaternion(-0.31305715, 0.075180076, -0.21363969, 0.92233473)
|
||||
bones/25/rotation = Quaternion(0.5710469, -0.039941728, 0.017517319, 0.819758)
|
||||
bones/26/rotation = Quaternion(-0.69202226, 0.0027399438, -0.003180337, 0.721864)
|
||||
bones/28/rotation = Quaternion(0.056880478, 0.03165418, 0.2195195, 0.97343403)
|
||||
bones/29/rotation = Quaternion(0.038734946, -0.00095578696, -0.019037286, 0.9990678)
|
||||
bones/30/rotation = Quaternion(-0.67850786, -0.0014370738, 0.0042436896, 0.73457956)
|
||||
|
||||
[node name="AnimationPlayer" parent="Model/doe_girl" parent_id_path=PackedInt32Array(1269374108, 1532649165) index="1" unique_id=478945409]
|
||||
[node name="AnimationPlayer" parent="Model/doe_girl" parent_id_path=PackedInt32Array(1269374108, 1532649165) index="1" unique_id=126187206]
|
||||
autoplay = &"HoldGun"
|
||||
|
||||
[node name="AudioListener3D" type="AudioListener3D" parent="." unique_id=1396328287]
|
||||
@@ -1066,6 +1100,7 @@ transparent_bg = true
|
||||
size = Vector2i(32, 32)
|
||||
|
||||
[node name="Coin" parent="CoinViewport" unique_id=1538763687 instance=ExtResource("51_w13oc")]
|
||||
visible = false
|
||||
|
||||
[node name="Cylinder" parent="CoinViewport/Coin" index="0" unique_id=109227366]
|
||||
layers = 8
|
||||
@@ -1124,13 +1159,21 @@ bus = &"SFX"
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.43043494, 0)
|
||||
target_position = Vector3(0, -11.465, 0)
|
||||
|
||||
[node name="NetworkPuppeteer" type="Node" parent="." unique_id=1492136381 node_paths=PackedStringArray("player", "player_movement", "skeleton")]
|
||||
[node name="NetworkPuppeteer" type="Node" parent="." unique_id=1492136381 node_paths=PackedStringArray("player", "player_movement", "skeleton", "animation_tree")]
|
||||
script = ExtResource("78_vkt85")
|
||||
player = NodePath("..")
|
||||
player_movement = NodePath("../PlayerMovement")
|
||||
skeleton = NodePath("../Model/doe_girl/Armature/Skeleton3D")
|
||||
animation_tree = NodePath("../AnimationTree")
|
||||
metadata/_custom_type_script = "uid://dbyaxum1l8dn4"
|
||||
|
||||
[node name="AnimationTree" type="AnimationTree" parent="." unique_id=571587235]
|
||||
root_node = NodePath("../Model/doe_girl")
|
||||
tree_root = SubResource("AnimationNodeBlendTree_u2rve")
|
||||
anim_player = NodePath("../Model/doe_girl/AnimationPlayer")
|
||||
parameters/Blend2/blend_amount = 1.0
|
||||
parameters/Add2/add_amount = 1.0
|
||||
|
||||
[connection signal="timeout" from="WeaponSwapTimer" to="." method="_on_timer_timeout"]
|
||||
|
||||
[editable path="FirstPersonViewport/Head2/ViewMovement/RightHand/gauntlet"]
|
||||
|
||||
@@ -66,6 +66,8 @@ func setup_game() -> void:
|
||||
loadout_editor.hero_confirmed.connect(select_class)
|
||||
chatbox.username = Data.player_profile.display_name
|
||||
Data.player_profile.display_name_changed.connect(chatbox.change_username)
|
||||
for player: PlayerProfile in connected_players_profiles.values():
|
||||
player_character_selected_states[player] = false
|
||||
#loadout_editor.hero_selected.connect(Data.player_profile.set_preferred_class)
|
||||
#loadout_editor.hero_selected.connect(edit_player_profile)
|
||||
#player_connected.emit(peer_id, Data.player_profile)
|
||||
|
||||
@@ -3,6 +3,7 @@ class_name NetworkPuppeteer extends Node
|
||||
@export var player: CharacterBody3D
|
||||
@export var player_movement: PlayerMovement
|
||||
@export var skeleton: Skeleton3D
|
||||
@export var animation_tree: AnimationTree
|
||||
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
@@ -13,6 +14,10 @@ func _process(delta: float) -> void:
|
||||
|
||||
@rpc("unreliable", "call_remote")
|
||||
func set_position(position: Vector3) -> void:
|
||||
if player.global_position != position:
|
||||
animation_tree.set("parameters/Blend2/blend_amount", 1.0)
|
||||
else:
|
||||
animation_tree.set("parameters/Blend2/blend_amount", 0.0)
|
||||
player.global_position = position
|
||||
|
||||
|
||||
|
||||
@@ -31,7 +31,6 @@ gdscript/warnings/inferred_declaration=2
|
||||
window/size/viewport_width=1920
|
||||
window/size/viewport_height=1080
|
||||
window/stretch/mode="viewport"
|
||||
window/stretch/scale=3.0
|
||||
window/stretch/scale_mode="integer"
|
||||
|
||||
[editor]
|
||||
|
||||
Reference in New Issue
Block a user