mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-21 23:18:11 +00:00
Fix physics overwriting character ceiling bump speed for brick blocks (#545)
* Fix physics overwriting character ceiling bump speed for brick blocks * Update BrickBlock.gd * Update BrickBlock.gd * Update BrickBlock.gd
This commit is contained in:

committed by
GitHub

parent
46b4dc82b4
commit
f35740d0ca
@@ -13,6 +13,7 @@ func check_brick_empty() -> void:
|
||||
func on_block_hit(player: Player) -> void:
|
||||
if player.power_state.hitbox_size == "Big":
|
||||
if item == null:
|
||||
self.add_collision_exception_with(player) # Don't bonk with physics, will be handled after block is broken
|
||||
await get_tree().physics_frame
|
||||
destroy()
|
||||
Global.score += 50
|
||||
|
Reference in New Issue
Block a user