Substituted Spatial with Node3D

remotes/1708767613280057335/tmp_refs/heads/godot4-port
unfa 2021-02-26 20:58:13 +01:00
parent 5036e3e0f4
commit bf9eaa1eb0
7 changed files with 23 additions and 7 deletions

View File

@ -1,4 +1,4 @@
extends Spatial
extends Node3D
var first = true
var velocity = 4

View File

@ -1,4 +1,4 @@
extends Spatial
extends Node3D
signal damage_dealt
signal ammo_changed(type, amount)

View File

@ -1,4 +1,4 @@
extends Spatial
extends Node3D
# Declare member variables here. Examples:

View File

@ -1,10 +1,10 @@
extends Spatial
extends Node3D
# This Scene is meant for playing back sound groups. For simple, singular sound effects use stock Godot nodes, this is meant to play a random sound among a group with variations.
const SFX_dir = "res://Assets/SFX/" # all sound clips must reside somewhere in this directory
onready var player = $AudioStreamPlayer3D # playback backend
@onready var player = $AudioStreamPlayer3D # playback backend
export(String, FILE, "*-01.wav") var SoundClip = SFX_dir + "Test-01.wav"
export(bool) var AutoPlay = false

16
Gibs.gd Normal file
View File

@ -0,0 +1,16 @@
extends Node3D
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
# pass

View File

@ -1,4 +1,4 @@
extends Spatial
extends Node3D
func on_player_enters(player):
player.rpc("kill")

View File

@ -1,4 +1,4 @@
extends Spatial
extends Node3D
func spawn(player):
player.translation = player.get_parent().to_local(global_transform.origin)