mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-12-05 19:20:19 -08:00
Offscreen Podoboos don't score points (#715)
This commit is contained in:
parent
6c47d255b0
commit
f37e752ba6
1 changed files with 4 additions and 1 deletions
|
|
@ -48,7 +48,10 @@ func calculate_jump_height() -> float:
|
|||
const SMOKE_PARTICLE = preload("uid://d08nv4qtfouv1")
|
||||
|
||||
func flag_die() -> void:
|
||||
die()
|
||||
if $VisibleOnScreenEnabler2D.is_on_screen():
|
||||
die()
|
||||
else:
|
||||
queue_free()
|
||||
|
||||
func die() -> void:
|
||||
killed.emit()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue