I'm kind of stuck at the moment in one of my major game aspects: the flow and transfer of items or cargo.
So I want to buy 100 fuel on the player market at a space station.
Once purchased, I need to transfer the fuel to my ship (1 of 3 different ships I own).
Once it's on my ship I need to somehow get the game to recognise that the fuel is on the ship and is available to use.
Does anyone know how best to simulate this kind of activity withour being too overcomplicated?
Thanks in advance for any tips.
Develop games in your browser. Powerful, performant & highly capable.
If it's a general resource called 'fuel' then you can just use variables. 'Fuel' is a global variable and if it's transferred to ships you can have further global variables for ship1, ship2, ship3 or use instance variables if the object is important to the game.