commented out old multiplayer scripts and fixed character select input vector
This commit is contained in:
@@ -1,24 +1,24 @@
|
||||
class_name MultiplayerPC extends PawnController
|
||||
|
||||
@export var player_id := 1 :
|
||||
set(id):
|
||||
player_id = id
|
||||
|
||||
func _enter_tree() -> void:
|
||||
print("Player %d adding Controller for %d" % [Multiplayer.id, player_id])
|
||||
#Game.player = self
|
||||
pass
|
||||
|
||||
func setup(id) -> void:
|
||||
name = "Player " + str(id)
|
||||
player_id = id
|
||||
if Multiplayer.id == id:
|
||||
Game.player = self
|
||||
|
||||
func _physics_process(delta: float) -> void:
|
||||
var dir = Input.get_vector("west", "east", "north", "south")
|
||||
dir = Vector3(dir.x, 0, dir.y)
|
||||
if dir.length_squared() > 0:
|
||||
body.look_at(body.global_position - dir)
|
||||
velocity = speed * dir
|
||||
move_and_slide()
|
||||
#@export var player_id := 1 :
|
||||
#set(id):
|
||||
#player_id = id
|
||||
#
|
||||
#func _enter_tree() -> void:
|
||||
#print("Player %d adding Controller for %d" % [Multiplayer.id, player_id])
|
||||
##Game.player = self
|
||||
#pass
|
||||
#
|
||||
#func setup(id) -> void:
|
||||
#name = "Player " + str(id)
|
||||
#player_id = id
|
||||
#if Multiplayer.id == id:
|
||||
#Game.player = self
|
||||
#
|
||||
#func _physics_process(delta: float) -> void:
|
||||
#var dir = Input.get_vector("west", "east", "north", "south")
|
||||
#dir = Vector3(dir.x, 0, dir.y)
|
||||
#if dir.length_squared() > 0:
|
||||
#body.look_at(body.global_position - dir)
|
||||
#velocity = speed * dir
|
||||
#move_and_slide()
|
||||
|
||||
Reference in New Issue
Block a user