# Please Help - Simple Game action script

**URL:** <https://forum.kirupa.com/t/please-help-simple-game-action-script/28456>\
**Category:** flash\
**Created:** [August 13, 2003, 9:58pm UTC](https://forum.kirupa.com/t/please-help-simple-game-action-script/28456 "2003-08-13T21:58:44Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Madras](https://avatars.discourse-cdn.com/v4/letter/m/85f322/32.png) [@Madras](https://forum.kirupa.com/u/Madras)\
**Post date:** [August 13, 2003, 9:58pm UTC](https://forum.kirupa.com/t/please-help-simple-game-action-script/28456/1 "2003-08-13T21:58:44Z")

</div>

Can anyone help me in this game file.

I need to create a scene or a frame with a button.  
When I click on the button the Game should start to play.

Since I am not able to upload the file please use this below link to access the FLA file

This is What I did:  
I tried 1 space on the 1st key frame It didn’t work.  
I also made a new scene created a button gave a action-script (go to) It didn’t work.

When I created the button (action-script go to next frame or next scene) and modifying the frame number in the action-script on the actual game key frames.

This is the Problem I am facing:  
It doesn’t go to the last frame of the game (Last Frame - Click to play again)

My level in action-Script (Beginner- intermediate)

Thanks for the great help

[http://www.flashkit.com/movies/Games/pingbric-pinkel\_l-7765/index.php](http://www.flashkit.com/movies/Games/pingbric-pinkel_l-7765/index.php)

Thanks once again

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 14, 2003, 2:18pm UTC](https://forum.kirupa.com/t/please-help-simple-game-action-script/28456/2 "2003-08-14T14:18:50Z")

</div>

urgent request

I tried Many times with the scene & Keyframe . But it It didn’t work.

Can anyone help me please. This is a urgent request, So Please HELP.

THANKS

* * *

Your Pal

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 14, 2003, 2:22pm UTC](https://forum.kirupa.com/t/please-help-simple-game-action-script/28456/3 "2003-08-14T14:22:18Z")

</div>

> 

I need to create a scene or a frame with a button.

I’m not really sure what you want to do, but this is not possible :-  
Can you be more specific in what you want to do?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 14, 2003, 4:16pm UTC](https://forum.kirupa.com/t/please-help-simple-game-action-script/28456/4 "2003-08-14T16:16:22Z")

</div>

Hi blah-de-blah,

Thanks for the reply & thank you very much for helping me.

Step 1  
Basically I want to create a button. The Button should say Click to Play the GAME

So when Click on the Button — Step 2

Step 2  
The Game should start playing.

I did the step one  
But the game does not play good.  
That is if you miss the ball in the game it does not go the last frame (play again)

In the original game(before making the button):  
When you miss the ball it goes to last fame (play again).

I am sorry for some reason I am not able to the load the working file (FLA).

Can you Please download the file from the below site link.  
and test on the file.

[http://www.flashkit.com/movies/Games/pingbric-pinkel\_l-7765/index.php](http://www.flashkit.com/movies/Games/pingbric-pinkel_l-7765/index.php)

Thanks Again for helping me.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 15, 2003, 6:05am UTC](https://forum.kirupa.com/t/please-help-simple-game-action-script/28456/5 "2003-08-15T06:05:12Z")

</div>

So you jsut want a button to make the game go to the last scene?? I tried downloading your thing, but i can’t access the site :-\

Does this code work?

[AS]  
on (release) {  
\_root.gotoAndPlay (123)  
}  
[/AS]

Doesn’t that work? where 123 is the frame number

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 18, 2003, 1:55pm UTC](https://forum.kirupa.com/t/please-help-simple-game-action-script/28456/6 "2003-08-18T13:55:15Z")

</div>

Hi blah-de-blah,

Thanks for the reply & thank you very much for helping me. I am sorry for late response we lost the power supply I am sure you would have heard about Major Blackout.

please don’t KILL ME. I am sorry to mention I think my explanation was not correct. I really like to apologize.

What I really wanted to do is create a CLICK HERE START TO PLAY BUTTON before the game.

I know the there is "click here to play again” frame,

Can you please try again the link. I think now the link works.

[http://www.flashkit.com/movies/Games/pingbric-pinkel\_l-7765/index.php](http://www.flashkit.com/movies/Games/pingbric-pinkel_l-7765/index.php)

Here is the Explanations with the problem.

Step 1  
Basically I want to create a button. The Button should say Click to Play the GAME (before the game)

So when Click on the Button — Step 2

Step 2  
The Game should start playing.

I have done the step one But the game does not play good.  
That is if you miss the ball in the game it does not go the last frame (play again)

In The original game(before making the button):  
When you miss the ball it goes to last fame (play again).

This Is What I tried:  
I tried 1 space on the 1st key frame created a button gave a action-script go to next frame – It didn’t work.  
I also made a new scene created a button gave a action-script go to next scene – It didn’t work.

I am sorry for some reason I am not able to the load the working file (FLA).

I know you spent lot of time on this, once again i apologize. please try to help me if you can.

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 18, 2003, 2:40pm UTC](https://forum.kirupa.com/t/please-help-simple-game-action-script/28456/7 "2003-08-18T14:40:07Z")

</div>

Is the game supposed to continue after the score of 20 or to stop ?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 18, 2003, 2:57pm UTC](https://forum.kirupa.com/t/please-help-simple-game-action-script/28456/8 "2003-08-18T14:57:47Z")

</div>

it supposed to continue after the score of 20.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 18, 2003, 3:02pm UTC](https://forum.kirupa.com/t/please-help-simple-game-action-script/28456/9 "2003-08-18T15:02:41Z")

</div>

Almost there … need to eliminate a bug. By the way … do you use Flash MX or Flash 5 ?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 18, 2003, 3:13pm UTC](https://forum.kirupa.com/t/please-help-simple-game-action-script/28456/10 "2003-08-18T15:13:01Z")

</div>

Fantastic, Great - I use FLASH MX.

Thank You

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 18, 2003, 3:25pm UTC](https://forum.kirupa.com/t/please-help-simple-game-action-script/28456/11 "2003-08-18T15:25:01Z")

</div>

Oh man, I’m starting to get a headache ☹ This bug is a tough one. I’m sorry.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 18, 2003, 3:31pm UTC](https://forum.kirupa.com/t/please-help-simple-game-action-script/28456/12 "2003-08-18T15:31:27Z")

</div>

I am sorry about that

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 18, 2003, 3:39pm UTC](https://forum.kirupa.com/t/please-help-simple-game-action-script/28456/13 "2003-08-18T15:39:44Z")

</div>

Mmm … this is interesting: I put this on the bottom part (which if it hits, it’s supposed to go to Frame 5 and stops):

[AS]  
onClipEvent (enterFrame) {  
if (this.hitTest(\_root.bal)) {  
removeMovieClip(\_root.bal);  
\_parent.gotoAndStop(5);  
trace(“Hit bottom: \_parent(”+\_parent+").gotoAndStop(5) ||| removeMovieClip(\_root.bal)");  
}  
}  
[/AS]

and when I test the movie and let the ball hit the bottom, nothing is traced. Which means that it doesn’t gotoAndStop(5). Which is probably the bug. But why !?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 18, 2003, 3:41pm UTC](https://forum.kirupa.com/t/please-help-simple-game-action-script/28456/14 "2003-08-18T15:41:46Z")

</div>

if you need to see my FLA file, here it is please have look.

[http://www.artisticguru.com/flash/flash.htm](http://www.artisticguru.com/flash/flash.htm)

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 18, 2003, 3:43pm UTC](https://forum.kirupa.com/t/please-help-simple-game-action-script/28456/15 "2003-08-18T15:43:27Z")

</div>

Aaah, a fresh file. Just what I needed. Thanks 🙂 Now I can clear my mind about the previous bug.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 18, 2003, 3:48pm UTC](https://forum.kirupa.com/t/please-help-simple-game-action-script/28456/16 "2003-08-18T15:48:40Z")

</div>

WOW Thanks for trying so hard, I really appreciate it.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 18, 2003, 3:51pm UTC](https://forum.kirupa.com/t/please-help-simple-game-action-script/28456/17 "2003-08-18T15:51:25Z")

</div>

I have to stop working on this computer, but I’ll continue upstairs.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 18, 2003, 3:54pm UTC](https://forum.kirupa.com/t/please-help-simple-game-action-script/28456/18 "2003-08-18T15:54:24Z")

</div>

Great!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 18, 2003, 4:32pm UTC](https://forum.kirupa.com/t/please-help-simple-game-action-script/28456/19 "2003-08-18T16:32:00Z")

</div>

I fixed it ! Finally I got that little bug to die. I’ll explain what the problem was later cuz I ain’t got much time now. I’m uploading the fla as we speak. I’ll edit this post as soon as it’s done.

\*Just popped into my mind: the original code isn’t perfect, causing the ball to fly through the walls sometimes. I got a fix for that too, I’ll attach the same Fla but with the walls fixed later.

Here it is: [FLA](http://voetsjoeba.asianillusion.com/brick.fla)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 18, 2003, 5:05pm UTC](https://forum.kirupa.com/t/please-help-simple-game-action-script/28456/20 "2003-08-18T17:05:14Z")

</div>

Hi Voetsjoeba,

Thank You, you are too good, Incredible. That was a Fantastic hard work, You must be a GURU in FLASH. Thanks again it works great.

GURU THANKS AGAIN

[Next page](https://forum.kirupa.com/t/please-help-simple-game-action-script/28456.md?page=2)
