mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 23:48:11 +00:00
block bouncing a mushroom, now changes its direction, if at an edge.
This commit is contained in:
@@ -27,7 +27,8 @@ func on_area_entered(area: Area2D) -> void:
|
||||
if area.owner is Player:
|
||||
collect_item(area.owner)
|
||||
|
||||
func block_bounce_up() -> void:
|
||||
func block_bounce_up(block: Node2D) -> void:
|
||||
direction = -sign(block.global_position.x - global_position.x + 0.1)
|
||||
velocity.y = -200
|
||||
|
||||
func block_dispense_tween() -> void:
|
||||
|
Reference in New Issue
Block a user