mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-12-05 19:20:19 -08:00
bloopers now face the direction they travel in
This commit is contained in:
parent
1a34b3938e
commit
799f09afbd
1 changed files with 3 additions and 0 deletions
|
|
@ -17,6 +17,9 @@ func rise_tween() -> void:
|
|||
can_rise = false
|
||||
var tween = create_tween().set_trans(Tween.TRANS_CUBIC)
|
||||
var dir = sign(target_player.global_position.x - global_position.x)
|
||||
if dir != 0:
|
||||
direction = dir
|
||||
$Sprite.scale.x = direction
|
||||
var target_position := Vector2(32 * dir, -32)
|
||||
var final_position = global_position + target_position
|
||||
var top_point = -176
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue