00:00
00:00
Newgrounds Background Image Theme

plushyjay just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

Actionscript codes here!

421,822 Views | 7,950 Replies
New Topic

Response to Actionscript codes here! 2008-02-10 16:36:29


hmm. i was'nt sure whether to post this or not. someone has probably already asked this but i cba to look through 200 odd pages. Here it goes.

what would be the quickest way to make a button explode when you click it, then make the entire instance dissapear (actionscript). I'd love it if you could answer this cos im making a game for when im bored in IT lessons at school, i'll even send you the game when im done (it would probably be blammed if i posted it - no audio).


please don't gawp, I'm english.

BBS Signature

Response to Actionscript codes here! 2008-02-10 16:41:36


Where good and for animators very useful topic.

Response to Actionscript codes here! 2008-02-11 05:40:28


PLEASE! can someone answer my question


please don't gawp, I'm english.

BBS Signature

Response to Actionscript codes here! 2008-02-11 07:01:19


make a movieclip and animate it


.

Response to Actionscript codes here! 2008-02-11 08:54:02


i need a gun fire script


The kind of old they just don't make anymore!

[Had your submission unpublished? Click here!]

BBS Signature

Response to Actionscript codes here! 2008-02-11 10:13:29


does anyone have the code for a ragdoll game?


i did it for the lulz

BBS Signature

Response to Actionscript codes here! 2008-02-11 10:31:46


Does anybody have the code for an RPG game with lots of npc characters and a really good story??? I need one for my game I'm developing by myself to take credit for as having made it.

Response to Actionscript codes here! 2008-02-11 10:32:13


At 2/10/08 04:36 PM, Icelord182 wrote: hmm. i was'nt sure whether to post this or not. someone has probably already asked this but i cba to look through 200 odd pages. Here it goes.

what would be the quickest way to make a button explode when you click it, then make the entire instance dissapear (actionscript). I'd love it if you could answer this cos im making a game for when im bored in IT lessons at school, i'll even send you the game when im done (it would probably be blammed if i posted it - no audio).

1.ok make a button mc (NOT A MOVIECLIP) and on the first frame in the timeline of the button place the graphic for the button itself

2.go to the 4th frame and place the explosion, under where it says hit

there ya go

Response to Actionscript codes here! 2008-02-11 12:32:45


At 2/11/08 10:13 AM, Killers123 wrote: does anyone have the code for a ragdoll game?

anyone?


i did it for the lulz

BBS Signature

Response to Actionscript codes here! 2008-02-11 12:52:00


At 2/11/08 10:32 AM, thedo12 wrote:
At 2/10/08 04:36 PM, Icelord182 wrote: hmm. i was'nt sure whether to post this or not. someone has probably already asked this but i cba to look through 200 odd pages. Here it goes.

what would be the quickest way to make a button explode when you click it, then make the entire instance dissapear (actionscript). I'd love it if you could answer this cos im making a game for when im bored in IT lessons at school, i'll even send you the game when im done (it would probably be blammed if i posted it - no audio).
1.ok make a button mc (NOT A MOVIECLIP) and on the first frame in the timeline of the button place the graphic for the button itself

2.go to the 4th frame and place the explosion, under where it says hit

there ya go

NOOOO!

if i wanted it to explode when i hit it, then come back agen, sure id do that.

BUT I DONT! i want to 1.hit it
2.explode
3.then make the entire instance dissapear, MEANING IT DOSNT COME BACK!n


please don't gawp, I'm english.

BBS Signature

Response to Actionscript codes here! 2008-02-11 13:06:24


At 2/11/08 10:31 AM, Deathcon7 wrote: Does anybody have the code for an RPG game with lots of npc characters and a really good story??? I need one for my game I'm developing by myself to take credit for as having made it.

Somebody better answer me! It's a perfectly legit question! Are you guys just incapable or something? My question is so easy to answer, why isn't anyone!??!

Response to Actionscript codes here! 2008-02-11 13:24:04


For example if I have created a movie clip... For example a BALL_MC or something.
Screen size is 500x300 and I want to make a symbol game like it Proxicide's "MK vs SF 3"...

What code should I apply to the Movie Clip?

Response to Actionscript codes here! 2008-02-18 10:51:25


so i saw the stuff u said but im still kinda confused about action scripting im new to the flash movie thigey and im also trying to find about action scipting

Response to Actionscript codes here! 2008-02-18 11:04:15


Can someone give me the scripts bullets(hittest and ammo) and for mouse-aiming, like in Portal and Madness Interactive, but only in the direction the player is facing? It would help me out alot. :)

Response to Actionscript codes here! 2008-02-19 18:52:11


dude go look through the posts by evil ludy back when he made it alot of people asked that question


ever wanted to know how to earn money or get free games and gaming consoles visit my site to learn more.www.learntoearnmoney.webs.com

Response to Actionscript codes here! 2008-02-23 14:18:32


Please!!!! i really need some help in making a game like stick man sam......i know almost everything but how to make the bullets like a laser that moves from the gun to the enemy or to nothing.....not
x +=speed...... i mean when u shoot the bullet doesn't move it just connects to another object or to the end of the window.....like stick man sam or games like these.. i am in an advanced level in flash so u dont need to explain everything... i just need the main points :D:D thanks a lot for helping :)


Visit My website : AB4's site

Response to Actionscript codes here! 2008-02-27 19:03:26


im using actionscript 2
ok so i am trying to make a space shooter ths is the code for the movment
onClipEvent(load)
this.onEnterFrame = function() {
if (Key.isDown(Key.RIGHT)) { Ship._x += 10; }
else if (Key.isDown(Key.LEFT)) { Ship._x -= 10; }
else if (Key.isDown(Key.UP)) { Ship._y -= 10; }
else if (Key.isDown(Key.DOWN)) { Ship._y += 10; }
}
}

it keeps saying this

'{' expected
this.onEnterFrame = function() {

please help


ever wanted to know how to earn money or get free games and gaming consoles visit my site to learn more.www.learntoearnmoney.webs.com

Response to Actionscript codes here! 2008-03-01 01:34:58


At 2/11/08 01:06 PM, Deathcon7 wrote:
At 2/11/08 10:31 AM, Deathcon7 wrote: Does anybody have the code for an RPG game with lots of npc characters and a really good story??? I need one for my game I'm developing by myself to take credit for as having made it.
Somebody better answer me! It's a perfectly legit question! Are you guys just incapable or something? My question is so easy to answer, why isn't anyone!??!

Roflmao, what part in the game would u have then? It really seems like u want over 50% of a game handed over to you... lol

Response to Actionscript codes here! 2008-03-16 04:40:10


Well,I'm in the midst of making a RPG where you walk the character around by using w,a,s,d.
I need some help making an inventory script,The char wont pick any items from the ground,but we need a shop script too so he can buy/sell to the shop and equip the items he bought.

Any help please?

Response to Actionscript codes here! 2008-03-26 20:32:56


At 3/1/08 01:34 AM, DawnOfDusk wrote:
At 2/11/08 01:06 PM, Deathcon7 wrote:
At 2/11/08 10:31 AM, Deathcon7 wrote: Does anybody have the code for an RPG game with lots of npc characters and a really good story??? I need one for my game I'm developing by myself to take credit for as having made it.
Somebody better answer me! It's a perfectly legit question! Are you guys just incapable or something? My question is so easy to answer, why isn't anyone!??!
Roflmao, what part in the game would u have then? It really seems like u want over 50% of a game handed over to you... lol

...Wow, you just don't get sarcasm, do you?

Anyway, for some odd reason, even though I label my ground as "ground", it doesn't seem to work....

Help plz?

Response to Actionscript codes here! 2008-04-12 23:11:55


Sorry, I'm a total noob, but how would I make an mc play when I click it, say, like, I have a crosshair and a stick-figure, I click (shoot) the stick figure, and the stick figure mc plays (head popping off, blood squirting, etc.).
Also, how would I make a sound play upon clicking, like a gun firing?

bump

BBS Signature

Response to Actionscript codes here! 2008-04-16 04:30:47


i have been searching for a way to make my gun follow the mouse but to no avail plz help me!!!!!
it would be super appreciated!

ps the game that im making is a side scroller

pss its not my script


ima chargin my lazar... shoop da woop

BBS Signature

Response to Actionscript codes here! 2008-04-29 02:31:00


onClipEvent (load) {
// Set the move speed
moveSpeed = 15;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
if (_root.Walls.hitTest(getBounds(_root).xM ax,_y,true)) {
} else {
this._x += moveSpeed;
this.gotoAndStop(3);
}
// Move Right
} else if (Key.isDown(Key.UP)) {
if (_root.Walls.hitTest(_x,getBounds(_root)
.yMin,true)) {
} else {
this._y -= moveSpeed;
this.gotoAndStop(2);
}
// Move Up
} else if (Key.isDown(Key.DOWN)) {
if (_root.Walls.hitTest(_x,getBounds(_root)
.yMax,true)) {
} else {
this._y += moveSpeed;
this.gotoAndStop(5);
}
// Move Down
} else if (Key.isDown(Key.LEFT)) {
if (_root.Walls.hitTest(getBounds(_root).xM in,_y,true)) {
} else {
this._x -= moveSpeed;
this.gotoAndStop(4);
}
// Move Left
}
}
How do I make it after it come back to frame 1 after running?


A dog rules while a god drools or is that the opposite?

BBS Signature

Response to Actionscript codes here! 2008-05-07 01:36:40


Is there anyone who know how to do drag and drop in the form of classes. I need to do it in OOP format which is so troublesome!Thankx!

Response to Actionscript codes here! 2008-05-07 01:37:44


Is there anyone who know how to do drag and drop in the form of classes. I need to do it in OOP format which is so troublesome!Thankx!

Response to Actionscript codes here! 2008-05-07 05:27:08


Well it's the same as a simple drag & drop, but instead of placing actionscript in timeline, you make a class, and then, in this class, add event listeners. First add event listener for mouse down - this is your 'press'. On mouse down - start drag (or move to mouse x and y). On mouse up ('release') - stop drag.

Response to Actionscript codes here! 2008-05-07 06:48:00


Yoh people. I use Actionscript2.0 and I'm an ok scripter however, I've not needed to relate to a frame before.
If I labelled the frame, how would I relate a piece of AS to it?

L.A.B


Funny isn't it... Curiosity killed the cat, but throwing it out of an airbourne plane doesn't.

Terminal velocity FTW!

Response to Actionscript codes here! 2008-05-07 07:04:08


At 5/7/08 06:48 AM, Lifes-a-Bitch wrote: Yoh people. I use Actionscript2.0 and I'm an ok scripter however, I've not needed to relate to a frame before.
If I labelled the frame, how would I relate a piece of AS to it?

L.A.B

IDK if AS2 has that capability, but it may be similar to AS3. In AS3 you use MovieClipName.currentLabel.

Response to Actionscript codes here! 2008-05-07 11:15:16


Ok... I worked my way around that anyway.
I've thought threw several ideas in my head for a script, but all seem messy, so I'll ask for help here...
Say I wanted my character to attack when I press 'a'. Fair do'os, I get the code number ect.
However, if I wanted my character to attack repeatedly and posibly faster when you tap 'a'. Useing 'Key.isDown..." all I have to do is hold 'a'. Which is obviously not what I want.
Useing AS2.0, does anyone know how to make it so I'd need to tap 'a'?
Much appreciated.

L.A.B


Funny isn't it... Curiosity killed the cat, but throwing it out of an airbourne plane doesn't.

Terminal velocity FTW!

Response to Actionscript codes here! 2008-05-07 11:51:33


At 5/7/08 11:15 AM, Lifes-a-Bitch wrote: I've thought threw several ideas in my head for a script, but all seem messy, so I'll ask for help here...

Questions like this is what the whole Flash forum is for. I suggest that you make a new thread instead of posting here, more people will probably read your question, and this thread is just for posting codes (at least that was the original thought).