I'm making a p8 game where you build things, how do I do that whilst making new variables so they can be used in collisions?
P#45337 2017-10-19 16:28 ( Edited 2017-10-23 20:40)
:: PixelBytes
I would, but I don't want to take up too many tokens
P#45339 2017-10-19 16:49 ( Edited 2017-10-19 20:49)
:: DR4IG
Tables are the best inventory and you can always ADD or DEL things from them so they're pretty memory light if used well. I'd suggest a table format like, ITEM#, ITEMNAME, ITEMAMOUNT and use the item# to poke about your inventory.
Like
| 1,Banana,3 |
P#45360 2017-10-20 11:48 ( Edited 2017-10-20 15:50)
:: PixelBytes
Guys, i figured out something
function room_x()
rx={}
for i=2,100 do
rx[i]=-100
end
end
|
P#45428 2017-10-23 16:40 ( Edited 2017-10-23 20:40)
[Please log in to post a comment]



