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? 

kglad
Community Expert
Community Expert
July 8, 2024

Are you talking about for items or itemslots or for the one I sent:

var dataObj:Object = {};

dataObj["magicJewel"] = true;

dataObj["magicHourglass"] = false;

dataObj["magicWand"] = true;


what code do/did you use to fill a slot in the first scene?