0% found this document useful (0 votes)
102 views1 page

Bomba Computer Code Overview

This code defines functions for a bomb object in a game. When the timer times out after the bomb is activated, it will queue the bomb object for deletion. If any non-player object enters the bomb's area, it will hide the bomb sprite, show an explosion animation, start the timer, and call a function to kill the entering object.

Uploaded by

Daniel Schimit
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
102 views1 page

Bomba Computer Code Overview

This code defines functions for a bomb object in a game. When the timer times out after the bomb is activated, it will queue the bomb object for deletion. If any non-player object enters the bomb's area, it will hide the bomb sprite, show an explosion animation, start the timer, and call a function to kill the entering object.

Uploaded by

Daniel Schimit
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

func _ready():

pass

func _on_Timer_timeout():
queue_free()

func _on_bomba_body_entered(body):
if [Link] != "player":
$[Link]()
$[Link]()
$[Link] = "explosao"
$[Link]()
[Link]()

You might also like