Easier dropping
This commit is contained in:
parent
54d183c245
commit
3379f148c3
3 changed files with 5 additions and 44 deletions
|
|
@ -33,12 +33,12 @@ script = ExtResource("4_1cnhw")
|
|||
position = Vector2(-38, -481)
|
||||
|
||||
[node name="Platform" parent="EnemyList" instance=ExtResource("6_caaff")]
|
||||
visible = false
|
||||
z_index = 15
|
||||
position = Vector2(75, -585)
|
||||
collision_layer = 41
|
||||
|
||||
[node name="Platform2" parent="EnemyList" instance=ExtResource("6_caaff")]
|
||||
visible = false
|
||||
z_index = 15
|
||||
position = Vector2(225, -585)
|
||||
collision_layer = 41
|
||||
|
||||
|
|
|
|||
|
|
@ -136,7 +136,7 @@ func manage_velocity(delta: float) -> void:
|
|||
play_double_jump_animation()
|
||||
elif (Input.is_action_pressed("drop")):
|
||||
dropped = true
|
||||
self.position += earth_aligner.global_from_local(Vector2(0,3))
|
||||
self.position += earth_aligner.global_from_local(Vector2(0,12))
|
||||
if(not dropped):
|
||||
local_velocity.y = -jump_strength
|
||||
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue