mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-25 17:00:54 +00:00
bloopers now face the direction they travel in
This commit is contained in:
@@ -17,6 +17,9 @@ func rise_tween() -> void:
|
|||||||
can_rise = false
|
can_rise = false
|
||||||
var tween = create_tween().set_trans(Tween.TRANS_CUBIC)
|
var tween = create_tween().set_trans(Tween.TRANS_CUBIC)
|
||||||
var dir = sign(target_player.global_position.x - global_position.x)
|
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 target_position := Vector2(32 * dir, -32)
|
||||||
var final_position = global_position + target_position
|
var final_position = global_position + target_position
|
||||||
var top_point = -176
|
var top_point = -176
|
||||||
|
|||||||
Reference in New Issue
Block a user