mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-12-06 03:30:22 -08: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:
parent
46b4dc82b4
commit
f35740d0ca
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue