I wanted to make a point and click adventure game, but I don't have enough understanding on how to create an inventory or array.
Imagination. A strange occurrence on the mind that make artists fly, entrepreneurs success, flowers dance, and sun smiling. I am one who live inside imagination, the misfit that wish to brings you to world of color, of childhood wonders, of possibilities.
Age 39, Female
flash game designer
Indonesia
Joined on 12/28/08
I wanted to make a point and click adventure game, but I don't have enough understanding on how to create an inventory or array.
array is just like a variable. It works like this:
var myinventory:Array = new Array;
myinventory[0] = scissors;
myinventory[1] = ballpoint;
myinventory[2] = papers;
and so on...
More about arrays can be found on foundation-flash.com or other your-favourite-tutorial.
My inventory isn't dynamic, the items are placed in exact place.
Thanks for the help, I'll give it a try :)
Noel-Ranger
maybe?