Hello everyone,
I'd like to understand some points the console give me:
First, Why i have this message ?
_update_root_rect: Font oversampling does not work in 'Viewport' stretch mode, only '2D'.
Then, i have writed this:
func _ready():
$Area2D.connect('area_entered', self, 'selectItem', [true])
$Area2D.connect('area_exited', self, 'selectItem', [false])
The function 'connect()' returns a value, but this value is never used.
These lines are for a selection box i must draw. I understand "something" waiting for this event coming. Should i ignore this message or can i do something ?
Then,
var cheminUnit : PoolVector2Array
func move(posMouse, ptBat=null):
cheminUnit.empty()
The function 'empty()' returns a value, but this value is never used.
This is because 'cheminUnit' is already empty ? Esle, why this message means ?
At last,
func _on_Timer2_timeout():
if unitType == 'benne':
var listPosMine : PoolVector2Array
The variable 'listPosMine' was used but never assigned a value (a lot of messages like that for some others variables).
I understand this variable is local and gives this message. If i move it as a global variable, i don't have this message. What does it mean ?