Menu dilema

Okay, since I’ve finished version 1 and 2 of Stick Shooter, (featured on www.stickslaughter.com) I’m currently creating a Stick Shooter 2 with a target practice area, and a mission type area. But I’ve run into problems…

Okay, I’ve created a menu (in scene 1, called “menu”) and in scene 2, a scene called “practice”. On the menu I have 2 buttons, New Game, and Practice. The practice button, (the only one that works for now, since I haven’t made the missions yet) has the AS:


on (release) {
	gotoAndPlay("practice", "1")
}

So on release, it goes to and plays scene practice, frame 1. But when you click that, it flickers to the practice scene, and then back to the menu. I tried putting a stop action on frame 1 of the practice scene, but it messes up the componets of the game…

Anything help and/or suggestions would be greatly appreciated…

Thanks in advance,
KoRRupt

have you tried this if you just want it to go to that scene and stop?

on (release) {
	gotoAndStop ("practice", "1")
}

Argh, no, I already tried that…

Here, lemme show you…

http://www.stickslaughter.com/stickshooterbeta.html

Now, shoot until your out of bullets… the press spacebar to reload. Now you won’t be able to shoot, and if you press spacebar again it will shoot…

Lostinbeta? Have any ideas man…
-KoRRupt

like


on (release) {
    _root.gotoAndStop ("practice", "1")
}

Cheers :bounce:

from what I could see, you can still knock down the target with the click of the mouse, you just dont hear the sound until you press the spacebar. Is that what you’re getting?

I always ask for FLA’s in these cases. It is simply much easier to determine where the problem may be.

Good luck.

Thanks toya, head over to http://www.stickslaughter.com/games/stickshooterbeta.fla ,if you want to help me out, :wink:

Thanks man,
KoRRupt

You have nay ideas lostinbeta?

KoRRupt

Hmm weird…

I figured it out… 8]

Somehow, it screws up the scripts of the shooting, and bullets if you have them in seperate scenes. I put them in the same scene, and it works fine.

Thanks,
KoRRupt

like i´ve said, add this code to the button:


on (release) {
    _root.gotoAndStop ("practice", "1")
}

And, place a frame with a stop action and a frame label called practice in the practice scene. and it will work :wink:

Cheers :pope:

Thanks!

KoRRupt

np dude. :slight_smile: