feat: Implement core player character setup, a centralized notification system, and special tile power-up management with inventory and cooldowns.
This commit is contained in:
@@ -165,6 +165,15 @@ func _ready():
|
||||
display_name = "Player %d" % my_id
|
||||
$Name.text = display_name
|
||||
|
||||
# Character Pointer Visibility
|
||||
# Show only for our local player (not bots, not other players)
|
||||
var pointer = get_node_or_null("CharacterPointer")
|
||||
if pointer:
|
||||
if is_bot or is_in_group("Bots"):
|
||||
pointer.visible = false
|
||||
else:
|
||||
pointer.visible = is_multiplayer_authority()
|
||||
|
||||
# Sync name to other peers if this is our local player or a bot we own
|
||||
if is_multiplayer_authority():
|
||||
rpc("sync_display_name", display_name)
|
||||
|
||||
Reference in New Issue
Block a user