more fixes and new footstep sound
							parent
							
								
									52e0870c64
								
							
						
					
					
						commit
						3fe3cec651
					
				
											
												Binary file not shown.
											
										
									
								| 
						 | 
				
			
			@ -292,4 +292,9 @@ public partial class Character : CharacterBody2D, IFaction
 | 
			
		|||
                .EmitOneShot();
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public virtual void Footstep()
 | 
			
		||||
    {
 | 
			
		||||
        throw new System.NotImplementedException();
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,7 @@ using Godot;
 | 
			
		|||
using GodotUtilities;
 | 
			
		||||
using SupaLidlGame.Utils;
 | 
			
		||||
using SupaLidlGame.BoundingBoxes;
 | 
			
		||||
using SupaLidlGame.Extensions;
 | 
			
		||||
 | 
			
		||||
namespace SupaLidlGame.Characters;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -102,4 +103,12 @@ public sealed partial class Player : Character
 | 
			
		|||
            .DirectionTo(GetGlobalMousePosition())
 | 
			
		||||
            .Angle();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public override void Footstep()
 | 
			
		||||
    {
 | 
			
		||||
        GetNode<AudioStreamPlayer2D>("Effects/Footstep")
 | 
			
		||||
            .OnWorld()
 | 
			
		||||
            .WithPitchDeviation(0.125f)
 | 
			
		||||
            .Play();
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -90,6 +90,23 @@ tracks/0/keys = {
 | 
			
		|||
"update": 1,
 | 
			
		||||
"values": [2, 3, 4, 5, 6, 7]
 | 
			
		||||
}
 | 
			
		||||
tracks/1/type = "method"
 | 
			
		||||
tracks/1/imported = false
 | 
			
		||||
tracks/1/enabled = true
 | 
			
		||||
tracks/1/path = NodePath("..")
 | 
			
		||||
tracks/1/interp = 1
 | 
			
		||||
tracks/1/loop_wrap = true
 | 
			
		||||
tracks/1/keys = {
 | 
			
		||||
"times": PackedFloat32Array(0.2, 0.5),
 | 
			
		||||
"transitions": PackedFloat32Array(1, 1),
 | 
			
		||||
"values": [{
 | 
			
		||||
"args": [],
 | 
			
		||||
"method": &"Footstep"
 | 
			
		||||
}, {
 | 
			
		||||
"args": [],
 | 
			
		||||
"method": &"Footstep"
 | 
			
		||||
}]
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
[sub_resource type="Animation" id="Animation_vobpw"]
 | 
			
		||||
resource_name = "roll"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -23,8 +23,6 @@ public partial class DocShungiteDartState : DocAttackState
 | 
			
		|||
 | 
			
		||||
    public override NPCState Enter(IState<NPCState> nextState)
 | 
			
		||||
    {
 | 
			
		||||
        Doc.CanAttack = true;
 | 
			
		||||
        Doc.ShouldMove = true;
 | 
			
		||||
        return base.Enter(nextState);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue