Hello,
I've got another problem that I can't solve on my own and I'd be really glad for some help: In my game project one can enter a map, a seperate scene. Depending on the story progression, there are five different variants of the map, each a single frame.
Now, if I enter the map on the first frame, there is no problem with the single button here. But if I enter the second frame none of the two buttons work (even the one that used to work before). I use the same actionscript for all frames:
ActionScript Code:
outpost_btn.onPress = function(){
gotoAndPlay("outpost",1);
}
shipwreck_btn.onPress = function(){
gotoAndPlay("shipwreck",1);
}
I double-checked the instance names of the buttons and the spelling of the scenes referred to in the code is also correct. Does anybody have an idea what the source of the problem could be? I'm really confused since the code works in the first frame (with the "outpost" scene).
Thanks a lot in advance,
THP