#New problem for my card game
1 messages · Page 1 of 1 (latest)
please provide script and scene always when asking for help relating thoses, otherwise we can't really help
my first thought seeing your message is either:
- position the container scene/node2d/3d/control that are holding the card in the right position on the screen
- and/or anchor them to the correct place
Alr im gonna do this wait a sec
this is the script for the game table
class_name Carta
extends Control
@onready var immagine_carta = $ImmagineCarta
func mostra_carta(percorso_texture: String):
if FileAccess.file_exists(percorso_texture):
immagine_carta.texture = load(percorso_texture)
else:
var etichetta = Label.new()
etichetta.text = "MANCA\nIMMAGINE"
etichetta.horizontal_alignment = HORIZONTAL_ALIGNMENT_CENTER
etichetta.vertical_alignment = VERTICAL_ALIGNMENT_CENTER
etichetta.set_anchors_and_offsets_preset(Control.PRESET_FULL_RECT)
add_child(etichetta)
This one is the script that i use in the scene to show the card
ya
can you show the problem