• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Legacy GM how to reset values of a 3D array

jobjorgos

Member
Whenever I touch a fish item in the game, it get automatilly picked up to my bag if I got free inventory space with: scr_pickup_item3 (this works fine).

Whenever I press 'U' it should eat the fish, removing it from my bag with scr_remove_item3.

Somehow scr_remove_item3 is not working, the fish remains in the inventory and the values of global.inventory[i,2] does not reset somehow.

I really tried so much the past weeks to solve this but without succes so far. If anybody knows with what script I can clear the value of global.inventory[i,2,0] please let me know it would be really appricated :).

EDIT: I just found the solution! global.inventory[i,2]=""; worked!
 
Last edited:
Top