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
|
Rev | Line | |
---|
[49e3bfa] | 1 | extends Spatial
|
---|
| 2 |
|
---|
| 3 |
|
---|
| 4 | var is_ready = true
|
---|
| 5 |
|
---|
| 6 | func _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 |
|
---|
| 14 | func _physics_process(delta):
|
---|
| 15 | $AnimationFood.playback_speed = 4
|
---|
Note:
See
TracBrowser
for help on using the repository browser.