turrent section
This commit is contained in:
parent
5faeb3c6e9
commit
479014a980
3 changed files with 99 additions and 20 deletions
Binary file not shown.
Before Width: | Height: | Size: 2 KiB After Width: | Height: | Size: 4.5 KiB |
File diff suppressed because one or more lines are too long
|
@ -27,7 +27,7 @@ func _physics_process(delta: float) -> void:
|
||||||
sprite.frame = 1
|
sprite.frame = 1
|
||||||
direction *= -1.0
|
direction *= -1.0
|
||||||
var tween = create_tween().set_process_mode(Tween.TWEEN_PROCESS_PHYSICS)
|
var tween = create_tween().set_process_mode(Tween.TWEEN_PROCESS_PHYSICS)
|
||||||
tween.tween_property(sprite, "frame", 0, 0.0).set_delay(0.5)
|
tween.tween_property(sprite, "frame", 0, 0.0).set_delay(0.3)
|
||||||
tween.tween_property(self, "velocity", Vector2(jump_distance * direction, -jump_height), 0.0)
|
tween.tween_property(self, "velocity", Vector2(jump_distance * direction, -jump_height), 0.0)
|
||||||
tween.tween_property(self, "landed", false, 0.0)
|
tween.tween_property(self, "landed", false, 0.0)
|
||||||
tween.tween_callback(tween, "kill")
|
tween.tween_callback(tween, "kill")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue