Skip to main content
Known Participant
July 7, 2024
Question

How do I make items/powerups come with in the next scene?

  • July 7, 2024
  • 1 reply
  • 1156 views

I have a basic problem I think, when the character touches items/powerups they'll go into itemslots. But when the character touches a door or heads to the next scene/stage (not a frame), the items/powerups are not in the itemslots anymore even though I added them to the next scene (mainly their just outside the itemslots).


How do I get the game to keep the progress as the character enters other scenes/stages? 
I don't know if flash games only work on one scene or if I setup arrays or sharedobjects.

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
July 7, 2024

using scenes means you have to redo anything you want to carry from one scene to the bext.

Known Participant
July 7, 2024

So should I just try to put it kinda like all one scene instead? 

Known Participant
July 8, 2024

2. no. see my previous posts. they all initialize daraObj with the same line of code.

3. there's not always one of each, correct?


Really there is only one of each. Its like quest items basically.

 

var dataObj:Object = {};

dataObj["magicJewel"] = true;

dataObj["magicHourglass"] = false;

dataObj["magicWand"] = true;