Initial commit (1/2)
This commit is contained in:
commit
3411c5796d
66 changed files with 2261 additions and 0 deletions
12
scripts/projectiles/Rocket.gd
Normal file
12
scripts/projectiles/Rocket.gd
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
extends Projectile
|
||||
|
||||
|
||||
|
||||
func areyouready():
|
||||
Target = Node2D.new()
|
||||
if len(get_tree().current_scene.CanTarget) > 0:
|
||||
get_tree().current_scene.CanTarget[0].add_child(Target)
|
||||
else:
|
||||
get_parent().add_child(Target)
|
||||
Target.global_position = get_global_mouse_position()
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue