source: Studio/Food_Pickup.gd@ 49e3bfa

sandbox
Last change on this file since 49e3bfa was 49e3bfa, checked in by Kevin Chapman <victory2b@…>, 3 years ago

(WIP) Added Spinning Food. Test object for restoring food to player.

  • Property mode set to 100644
File size: 364 bytes
Line 
1extends Spatial
2
3
4var is_ready = true
5
6func _ready():
7
8 # Get the area for the trigger, and assign it's body_entered signal to trigger_body_entered
9 $Holder/Food_Pickup_Trigger.connect("body_entered", self, "trigger_body_entered")
10
11 # Now we can use all of our setget functions.
12 is_ready = true
13
14func _physics_process(delta):
15 $AnimationFood.playback_speed = 4
Note: See TracBrowser for help on using the repository browser.