Question
Need help with a few things
I need some help with a few things for some flash games I'm
working on. I'm not even sure if the things I need help with are
possible to do in flash. If they are I'd really like some help
figuring out how to do them. The first thing I need help with is
creating an rpg style inventory. What I have at the moment is an MC
that's the inventory. It sits off-stage until you click on a
button, which moves it on-stage. Clicking another button moves the
inventory MC back off-stage. What I can't figure out is how to make
it so items the player picks up are removed from the stage and
added to a slot in the inventory MC. I would like to find a way
that makes it so when an item is used it is removed from the
inventory and the other items reshuffle so there are no empty
slots. For example: say I have 4 slots with items: slot 1 = item A,
slot 2 = item B, slot 3 = item C, and slot 4 = item D. If item B is
used and removed from the inventory, I want it so items C and D
move to slots 2 and 3. If the player picks up another item I want
it so that it's added to slot 4.
The other thing I need help with is moving from .swf file to a different .swf file. Say my game has an Inn as the starting point. From the Inn the player can go on quests. I don't want to put everything into one big .swf file. Instead, I'd like to have the Inn and each quest as a seperate .swf file. When the player clicks on something in the Inn it loads the correct quest .swf. I'd also like it so that variables are moved from one .swf to another. So if the player loses some health, gains some gold, and picks up a few tiems, those changes will carry over to the Inn when the quest finishes. Also, changes made in the Inn need to carry over into the quests. Is this possible to do?
Any help I can get with these things would be greatly appreciated. If there are any tutorials that would help me please let me know where I can find them. Thanks.
The other thing I need help with is moving from .swf file to a different .swf file. Say my game has an Inn as the starting point. From the Inn the player can go on quests. I don't want to put everything into one big .swf file. Instead, I'd like to have the Inn and each quest as a seperate .swf file. When the player clicks on something in the Inn it loads the correct quest .swf. I'd also like it so that variables are moved from one .swf to another. So if the player loses some health, gains some gold, and picks up a few tiems, those changes will carry over to the Inn when the quest finishes. Also, changes made in the Inn need to carry over into the quests. Is this possible to do?
Any help I can get with these things would be greatly appreciated. If there are any tutorials that would help me please let me know where I can find them. Thanks.