Basically, the problem is that when you click on an item and it appears in your inventory. Now when you leave to go to the other side of the room (the next frame) and then come back the (previous frame) items reset themselves. I'm looking for the simplest way to do this. Of course in that clip, I had newbishly was just using go to so and so frame in the movie clip to appear the item was gone.
I made this separate file to test out a code to see if I could get past this problem, so I could apply it to my game.
It's my first time making a game like this and any step by step tutorial I've read hasn't really explained how to make the item you found stay invisible when going to another frame.
Sorry, then I'm not quite following then, even though I'm on a separate layer it's still not right?
I'm not exaclty an intermediate flash user, unfortunately and looking for an over all simple solution. A lot of tutorials haven't really went into a lot of depth about this out of so many I've read.
Lets look at your code then. stop(); var door_btn:Button; <--- What's the point? door_btn.enabled=false; <--- ?? var swipecardlocated:String; swipecardlocated="hidden"; <--- Redundant you don't use it anyway swipecard2_mc._visible=false; swipecard1_mc.onpress=function(){ <--- No condition? swipecard2_mc._visible=true; swipecard1_mc._visible=false; swipecardlocated="found"; <--- Again Redundant }
It's pretty painful reading your code. I would recommend you to find someone to do the coding for you. Also the code above functions exactly as this.
Is it that bad? Oh, the door_btn is actually for the door on the next frame actually. I mean to erase it, since the door would be false until until "so and so" items are needed to open it then it becomes true.
Is it redundant to use that? It's just for the dynamic text box on the side of the stage that can't be seen.
Well, I have been looking for help though I haven't really found anyone that can. Even on newgroudns, and a lot of people there are jerks and there advice is to basically go look it up.