Forum Topic: RPG Game help (actionscript)

(526 views • 31 replies)

This topic is 2 pages long. [ 1 | 2 ]

<< < > >>
Questioning

beaver-beaver

Reply To Post Reply & Quote

Posted at: 8/28/06 10:13 PM

beaver-beaver NEUTRAL LEVEL 03

Sign-Up: 10/31/05

Posts: 121

Hey Newgrounds, I was told to post this in this forum. I need help real bad! I need an actionscript assistance. I have this game, with intro music on Sound: blablabla
Sync: Start Repeat 0
and I want this button, to actually lead to the real game. So, I want to stop the current music, and add new music.

This is my code: on (release) {stopAllSounds();}{gotoAndPlay("1",133);}

What did I do wrong?

Can someone help a noob?
BBS Signature

None

TrueDarkness

Reply To Post Reply & Quote

Posted at: 8/28/06 10:14 PM

TrueDarkness EVIL LEVEL 27

Sign-Up: 08/31/04

Posts: 4,718

From the looks of it, your code should actually be:


on(release){
stopAllSounds();
_root.gotoAndPlay("Scene 1", 133);
}


None

beaver-beaver

Reply To Post Reply & Quote

Posted at: 8/28/06 10:18 PM

beaver-beaver NEUTRAL LEVEL 03

Sign-Up: 10/31/05

Posts: 121

At 8/28/06 10:14 PM, True_Darkness wrote: From the looks of it, your code should actually be:


on(release){
stopAllSounds();
_root.gotoAndPlay("Scene 1", 133);
}

**Error** Scene=Scene 1, layer=sprites, frame=132:Line 1: Mouse events are permitted only for button instances
on(release){

Total ActionScript Errors: 1 Reported Errors: 1

Still needs help. That didnt work!
BBS Signature

None

TrueDarkness

Reply To Post Reply & Quote

Posted at: 8/28/06 10:25 PM

TrueDarkness EVIL LEVEL 27

Sign-Up: 08/31/04

Posts: 4,718

You have to put it on a button or a movieclip..


None

beaver-beaver

Reply To Post Reply & Quote

Posted at: 8/28/06 10:30 PM

beaver-beaver NEUTRAL LEVEL 03

Sign-Up: 10/31/05

Posts: 121

At 8/28/06 10:25 PM, True_Darkness wrote: You have to put it on a button or a movieclip..

Fuck you. I am way past that. It still says it.

I am not the noob you think I am
BBS Signature

None

Blaze

Reply To Post Reply & Quote

Posted at: 8/28/06 10:32 PM

Blaze LIGHT LEVEL 22

Sign-Up: 08/04/05

Posts: 6,957

At 8/28/06 10:30 PM, beaver_beaver wrote: Fuck you. I am way past that. It still says it.

I am not the noob you think I am

Seems to me you are, you dont go around insulting the kind person that just helped you.

Youre doing some noob error, on(release) and every on(); just work on movieclips or buttons, if youre putting it on a frame, theres your error. No flaming please.


None

Nuggs

Reply To Post Reply & Quote

Posted at: 8/28/06 10:37 PM

Nuggs LIGHT LEVEL 19

Sign-Up: 12/17/05

Posts: 1,222

At 8/28/06 10:30 PM, beaver_beaver wrote: I am not the noob you think I am

for some reason I seem to remember you posting this before

At 8/28/06 10:13 PM, beaver_beaver wrote: Can someone help a noob?

Games|1|2|3| Movies|1|2|

BBS Signature

None

beaver-beaver

Reply To Post Reply & Quote

Posted at: 8/28/06 10:44 PM

beaver-beaver NEUTRAL LEVEL 03

Sign-Up: 10/31/05

Posts: 121

You have got to be kidding me! I made sure it said Actions-button.

Want a pic to prove it?
Here it is (sorry for bad quality, MS Paint sucks)

BBS Signature

None

Arby

Reply To Post Reply & Quote

Posted at: 8/29/06 08:05 AM

Arby LIGHT LEVEL 19

Sign-Up: 10/24/04

Posts: 2,138

copy the code, delete the button, then remake a new one and declare it as a button when you make it. see if that fixes it. otherwise, have you played with any settings? theres something going funny there.

while(true){
arby = you + 1
}


None

Madferit

Reply To Post Reply & Quote

Posted at: 8/29/06 08:32 AM

Madferit FAB LEVEL 10

Sign-Up: 07/29/05

Posts: 3,357

Lol pokemon.

on(release){
stopAllSounds();
_root.gotoAndPlay(113);
}

You don't need to say scene 1.


Angry

Afflict

Reply To Post Reply & Quote

Posted at: 8/29/06 09:32 AM

Afflict NEUTRAL LEVEL 07

Sign-Up: 08/05/06

Posts: 113

Dude dont go throwing hate speech at people trying to help you.

These last two comments should solve your problem.


None

TrueDarkness

Reply To Post Reply & Quote

Posted at: 8/29/06 09:37 AM

TrueDarkness EVIL LEVEL 27

Sign-Up: 08/31/04

Posts: 4,718

Okay, this is a Flash glitch that I've encountered several times. Seems to me that when you copy and paste codes from somewhere, it gives an error. So what I did, is retyped the code myself, autoformated, and it works. It's really weird, but that IS the actionscript, and unless you are on another scene, like Afflict said, you don't need the "Scene 1" part. Just:

on(release){
stopAllSounds();
_root.gotoAndPlay(133);
}

Or if it doesn't go to the frame you want, click on the frame, and give it a label name, so you can say:

_root.gotoAndPlay("LabelNameYouTyped")


None

TrueDarkness

Reply To Post Reply & Quote

Posted at: 8/29/06 09:38 AM

TrueDarkness EVIL LEVEL 27

Sign-Up: 08/31/04

Posts: 4,718

At 8/29/06 09:37 AM, True_Darkness wrote:

like Afflict said, you don't need the "Scene 1" part. Just:

I meant Centox =p


None

GustTheASGuy

Reply To Post Reply & Quote

Posted at: 8/29/06 09:41 AM

GustTheASGuy LIGHT LEVEL 08

Sign-Up: 11/02/05

Posts: 9,716

Look at the output (in the very picture).
**Error** Scene=Scene 1, layer=sprites, frame=132 :Line 1: Mouse events are permitted only for button instances

...Dude, get the fuck out.

haXe AliceML Box2dLite Learn AS
#ngprogramming at irc.freenode.net
OVER NINE THOUSAAAAND!!!


None

TrueDarkness

Reply To Post Reply & Quote

Posted at: 8/29/06 09:46 AM

TrueDarkness EVIL LEVEL 27

Sign-Up: 08/31/04

Posts: 4,718

At 8/29/06 09:41 AM, -Gust- wrote: Look at the output (in the very picture).
**Error** Scene=Scene 1, layer=sprites, frame=132 :Line 1: Mouse events are permitted only for button instances

...Dude, get the fuck out.

So? The error could be appearing on frame 132 where he pasted the code =p
I'm telling you, it's a bug. Just retype the code and it should work.


None

Madferit

Reply To Post Reply & Quote

Posted at: 8/29/06 09:55 AM

Madferit FAB LEVEL 10

Sign-Up: 07/29/05

Posts: 3,357

At 8/29/06 09:38 AM, True_Darkness wrote:
At 8/29/06 09:37 AM, True_Darkness wrote:
like Afflict said, you don't need the "Scene 1" part. Just:

I meant Centox =p

Thanks :P


None

pspmad

Reply To Post Reply & Quote

Posted at: 7/5/08 05:51 PM

pspmad DARK LEVEL 07

Sign-Up: 02/12/06

Posts: 1,117

At 8/28/06 10:13 PM, beaver-beaver wrote: Hey Newgrounds, I was told to post this in this forum. I need help real bad! I need an actionscript assistance. I have this game, with intro music on Sound: blablabla
Sync: Start Repeat 0
and I want this button, to actually lead to the real game. So, I want to stop the current music, and add new music.

This is my code: on (release) {stopAllSounds();}{gotoAndPlay("1",133);

}


What did I do wrong?

Can someone help a noob?

Wait a fucking second, You speak good grammar? What kind of freakin joke is this?, Thank god BMM Banned you nice and easy, Starting to love that guy.

Go here and post a comment for a video from the sites provied! Well come to see Metal Gear- A memory Trail

BBS Signature

None

ZealousZephyr

Reply To Post Reply & Quote

Posted at: 7/5/08 06:32 PM

ZealousZephyr NEUTRAL LEVEL 04

Sign-Up: 07/05/08

Posts: 141

At 8/28/06 10:18 PM, beaver-beaver wrote: **Error** Scene=Scene 1, layer=sprites, frame=132:Line 1: Mouse events are permitted only for button instances
on(release){

Total ActionScript Errors: 1 Reported Errors: 1

Goto frame 132 of the layer "sprites". You might have accidentally pasted the code into the frame or something.


None

gdog163

Reply To Post Reply & Quote

Posted at: 7/5/08 06:57 PM

gdog163 EVIL LEVEL 06

Sign-Up: 06/19/06

Posts: 530

You are being very rude towards the people who are trying to help you, that will get you no wherez


None

CaiWengi

Reply To Post Reply & Quote

Posted at: 7/5/08 07:02 PM

CaiWengi EVIL LEVEL 05

Sign-Up: 09/17/04

Posts: 1,301

Seems to me your either a noob or a complete fucking idiot.

Looks like a glitch. Just try making a new button and then re writing it like that guy said. And stop being such a prick to people trying to help

-

BBS Signature

None

ChaoticTrashCan

Reply To Post Reply & Quote

Posted at: 7/5/08 07:18 PM

ChaoticTrashCan DARK LEVEL 05

Sign-Up: 04/06/08

Posts: 411

umm... this thread was from 2006.
Niceee

Without tissues, mucus would be everywhere.
... Just letting you know.


None

CaiWengi

Reply To Post Reply & Quote

Posted at: 7/5/08 07:24 PM

CaiWengi EVIL LEVEL 05

Sign-Up: 09/17/04

Posts: 1,301

Heh thankgod someone realised. Its that psp guys fault for bumping

-

BBS Signature

None

ChaoticTrashCan

Reply To Post Reply & Quote

Posted at: 7/5/08 07:35 PM

ChaoticTrashCan DARK LEVEL 05

Sign-Up: 04/06/08

Posts: 411

And everyone, make sure to watch this guy's newest movie. It's "EPICK"

Without tissues, mucus would be everywhere.
... Just letting you know.


None

AcidSoldier

Reply To Post Reply & Quote

Posted at: 7/5/08 07:45 PM

AcidSoldier DARK LEVEL 14

Sign-Up: 11/01/05

Posts: 2,444

At 7/5/08 05:51 PM, pspmad wrote:
At 8/28/06 10:13 PM, beaver-beaver wrote: Hey Newgrounds, I was told to post this in this forum. I need help real bad! I need an actionscript assistance. I have this game, with intro music on Sound: blablabla
Sync: Start Repeat 0
and I want this button, to actually lead to the real game. So, I want to stop the current music, and add new music.

This is my code: on (release) {stopAllSounds();}{gotoAndPlay("1",133);
}

What did I do wrong?

Can someone help a noob?
Wait a fucking second, You speak good grammar? What kind of freakin joke is this?, Thank god BMM Banned you nice and easy, Starting to love that guy.

You think you're cool for swearing? Nice, I totally respect you.
1) BBM is a mod, you do not like, or dislike mods, or teh banz u!! (:D)
2)He has better grammer than you.
3)It's called sarcasm.


Angry

ZealousZephyr

Reply To Post Reply & Quote

Posted at: 7/5/08 09:44 PM

ZealousZephyr NEUTRAL LEVEL 04

Sign-Up: 07/05/08

Posts: 141

At 7/5/08 07:24 PM, CaiWengi wrote: Heh thankgod someone realised. Its that psp guys fault for bumping

Oh shit, now I feel stupid. Thanks pspmad! >:(


None

pspmad

Reply To Post Reply & Quote

Posted at: 7/8/08 02:25 PM

pspmad DARK LEVEL 07

Sign-Up: 02/12/06

Posts: 1,117

At 7/5/08 07:45 PM, AcidSoldier wrote:
At 7/5/08 05:51 PM, pspmad wrote:
At 8/28/06 10:13 PM, beaver-beaver wrote: Hey Newgrounds, I was told to post this in this forum. I need help real bad! I need an actionscript assistance. I have this game, with intro music on Sound: blablabla
Sync: Start Repeat 0
and I want this button, to actually lead to the real game. So, I want to stop the current music, and add new music.

This is my code: on (release) {stopAllSounds();}{gotoAndPlay("1",133);
}

What did I do wrong?

Can someone help a noob?
Wait a fucking second, You speak good grammar? What kind of freakin joke is this?, Thank god BMM Banned you nice and easy, Starting to love that guy.
You think you're cool for swearing? Nice, I totally respect you.
1) BBM is a mod, you do not like, or dislike mods, or teh banz u!! (:D)
2)He has better grammer than you.
3)It's called sarcasm.

1) Dont be silly, I dont sware to Whore my self on Attention( -_-')
2) You are allowed to Like or Dislike mods, Its a matter of opinion
3) Just because the internet is you're scapegoat to trolling is very ignorant
And just plain immature

Go here and post a comment for a video from the sites provied! Well come to see Metal Gear- A memory Trail

BBS Signature

None

Ghyfty

Reply To Post Reply & Quote

Posted at: 7/12/08 08:27 AM

Ghyfty DARK LEVEL 08

Sign-Up: 02/07/08

Posts: 1,635

Whoa!No spelling errors then time.I'm really suprised.

Pm me if you like or don't like meh sig. (8) likes (4) dislike
OK, I have over 1,000 posts, does that make me a regular here? Pm me if you have the answer.
Sig by Scuzz

BBS Signature

None

Ghyfty

Reply To Post Reply & Quote

Posted at: 7/12/08 08:29 AM

Ghyfty DARK LEVEL 08

Sign-Up: 02/07/08

Posts: 1,635

Someone mush be whiteing this for him.

Pm me if you like or don't like meh sig. (8) likes (4) dislike
OK, I have over 1,000 posts, does that make me a regular here? Pm me if you have the answer.
Sig by Scuzz

BBS Signature

Happy

the1stguy1

Reply To Post Reply & Quote

Posted at: 7/14/08 10:47 PM

the1stguy1 LIGHT LEVEL 09

Sign-Up: 06/22/08

Posts: 1,061

At 8/28/06 10:30 PM, beaver-beaver wrote: Fuck you. I am way past that. It still says it.

I am not the noob you think I am

on an unrelated sidenote... this statement has proved that you are a troll :)

[FAQs] [Best Lock Ever] [EPIC LULZ] [Incest]
Status: Alive YAY :3

BBS Signature

None

5a7aN

Reply To Post Reply & Quote

Posted at: 7/14/08 10:51 PM

5a7aN NEUTRAL LEVEL 05

Sign-Up: 06/27/07

Posts: 128

What did I do wrong?

on (release) {
stopAllSounds();
gotoAndPlay("1",133);
}

try that they all didn't appear on the on(release)

BBS Signature

All times are Eastern Standard Time (GMT -5) | Current Time: 09:25 AM

<< Back

This topic is 2 pages long. [ 1 | 2 ]

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!