#[solved] ignored function
22 messages · Page 1 of 1 (latest)
What kind of function? Show your code!
Func add_to_inventory() -> void:
for index in range(player_inv.slots.size)):
player_inv.slots[index].item = berry
It fills the inventory slots with one berry in each slot
It works in ready function but in process its just ignored nothing happens
does it give you error or doesnt run ?
Just doesnt run no error
if you put just simple print function in it does it work ?
No it ignores the whole function
did you disable processing somewhere
Can you show the code of the whole file?
And please put it in-between triple accents. Then it's readable. Like this:
this
is
code
you can do `` `swift to make it work with gdscript formating
just to double check, based on your initial post:
did you write _proces(delta) or _process(delta)
Restarted godot now the print works but still not doing anything, sorry cant do better i am on mobile and dont have right now internet on desktop
The proces function is good have code in it that works
Problem solved,found out what coused it, thanks for help
Can you tell us what caused it?