00:00
00:00
Newgrounds Background Image Theme

CleanCosmos 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!

393,063 Views | 7,981 Replies
New Topic

Response to Actionscript codes here! 2003-08-26 10:10:47


At 8/25/03 12:46 PM, eviLudy wrote: All of what you want is like explained on the first page of the tread.

yeah, i saw that, but what i dont get is this script:

onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.score += 1;
if (_root.score == 10) {
_root.gotoAndPlay (2);
}
}
}
what clip event?

Response to Actionscript codes here! 2003-08-26 10:29:57


At 8/26/03 10:10 AM, Jimbob1630 wrote:
At 8/25/03 12:46 PM, eviLudy wrote: All of what you want is like explained on the first page of the tread.
yeah, i saw that, but what i dont get is this script:

onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.score += 1;
if (_root.score == 10) {
_root.gotoAndPlay (2);
}
}
}
what clip event?

If you don't understand event handlers, I suggest you take the time to learn in your actionscript reference that comes with flash.

onClipEvent(enterFrame){

simply means: Perform all givin actions under this event handler if the event handler is true.
"enterFrame" is while you are in the current frame. It updates constantly.

etc with the rest. Read up on it. If this isn't what you needed, please explain further

Response to Actionscript codes here! 2003-08-26 12:20:19


Can someone help me, i wanna make a game with someone that is online pretty much ... I'll design and draw the things if someone wants to do the AS... Greetz

Response to Actionscript codes here! 2003-08-26 12:28:36


At 8/26/03 12:20 PM, MadClock wrote: Can someone help me, i wanna make a game with someone that is online pretty much ... I'll design and draw the things if someone wants to do the AS... Greetz

It's not like anyone is going to do that for you unless you prove you can do somthing good. Im busy for chatclock now.


Swing a Little more!

.. ROCK OUT!

BBS Signature

Response to Actionscript codes here! 2003-08-26 13:04:26


Sorry for my lack of posting these days. I will keep posting not that much as I am working on Criminality V4 (wich appears to be the last version, the poll on my site is where you can vote on my next project) And Im pretty far done with version 4, as my profile says: 75% till now


Swing a Little more!

.. ROCK OUT!

BBS Signature

Response to Actionscript codes here! 2003-08-26 15:14:45


Plz could someone tell me how to throw an object and make it come back i sorta figured it out but not that well


BBS Signature

Response to Actionscript codes here! 2003-08-26 15:50:57


denacioust and Amish, Im sorry to tell that both of your questions have been asked before and none knew the awnser.


Swing a Little more!

.. ROCK OUT!

BBS Signature

Response to Actionscript codes here! 2003-08-26 17:01:47


I know the answer.

Response to Actionscript codes here! 2003-08-26 17:06:45


Does someone want to make a game with me, add me on msn or aim : Msn loloke@hotmail.com Aim : MadClock88 Greetz !

Response to Actionscript codes here! 2003-08-26 20:23:08


Can someone explain duplicateMovieClip ?

Response to Actionscript codes here! 2003-08-27 13:56:02


how do you give enemies AI so they do stuff differently but not random every time you play, I meen like on madness interactive. That hand thing and gun setup would be good to.

Response to Actionscript codes here! 2003-08-27 16:06:55


Im sorry if this has been asked before but. I need a AS for making a car drive (In a GTA view)......

Madclock... What kind of game you thinking of making?

Response to Actionscript codes here! 2003-08-27 16:30:27


Ok... How do i add movement to something using a Keyboard Key instead of an arrow key. The Ascii code for A is 65 A is the key i need. What i want to do is if the A key is pressed, goto and play 21


- Sig provided by ME of the NGSM

- If you try to stay high, your bound to stay low. -

- If I make you a sig, please credit me here -

BBS Signature

Response to Actionscript codes here! 2003-08-27 16:32:08


At 8/27/03 04:06 PM, Norwegian_Blue wrote:
Madclock... What kind of game you thinking of making?

Ive got a person who walks on floor squares when u press the arrow keys, I'm building the first level but i'm stuck on making the first enemy attack u. the plot is u are braking into to a prize giving to stop a catastrofy, saying wat would ruin it.

Response to Actionscript codes here! 2003-08-27 16:42:44


Im not so good at AS but im a little good in 3D animation(see m movie: tank rampage).. i would be glad to help you with that.....

I also suck at drawing people.... :)

Response to Actionscript codes here! 2003-08-27 16:48:48


At 8/27/03 04:42 PM, Norwegian_Blue wrote: Im not so good at AS but im a little good in 3D animation(see m movie: tank rampage).. i would be glad to help you with that.....

I also suck at drawing people.... :)

if your talking to me then could you get some gun pictures, the ones ive got are of websites and i ain got permission.

Response to Actionscript codes here! 2003-08-27 16:52:52


I can get it for you..!

Handgun?? automatic??

What angle is it viewd from??

Give me som info and il fix it...

Response to Actionscript codes here! 2003-08-27 16:57:19


At 8/27/03 04:52 PM, Norwegian_Blue wrote: I can get it for you..!

Handgun?? automatic??

What angle is it viewd from??

Give me som info and il fix it...

realistic guns, side veiws, any type but explosives eg rockets flamethrowers etc

Response to Actionscript codes here! 2003-08-27 17:21:40


Ok... il try to get them done befire this time tomorrow...

and... one more thing... do you want a cartoonish look or a realistic??

Response to Actionscript codes here! 2003-08-27 22:45:43


Could you tell me how to make a preloader?
email me --> MY E-MAIL!!!!!!!!!!!!!!!!!!!!!!!!

Response to Actionscript codes here! 2003-08-28 02:35:45


I need the ActionScript to hide the menu when a user right clicks.

-Thanks

Response to Actionscript codes here! 2003-08-28 02:52:46


At 8/28/03 02:35 AM, Cann wrote: I need the ActionScript to hide the menu when a user right clicks.

Is that even possible?

Response to Actionscript codes here! 2003-08-28 03:01:13


I have scripting for:
handguns, automatic guns, rockets, knives, reloads, ammo, multiple weapons, weapon inacuracy, multi-warhead weapons, and the gun in a first person game to show ifferent angles depending where the crosshair is.
So if ya' want help, IM me, or email me-NO ATTACHMENTS!!!!! ive had emails with attachments that were probably viral but I dont have any viruses <^\./^>

BUT HOW IN THE FUCK DO YOU MAKE A SNIPER SCOPE?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!

Response to Actionscript codes here! 2003-08-28 04:13:38


At 8/27/03 05:21 PM, Norwegian_Blue wrote: Ok... il try to get them done befire this time tomorrow...

and... one more thing... do you want a cartoonish look or a realistic??

I already said realistic guns + email them to me.

Response to Actionscript codes here! 2003-08-28 04:15:15


At 8/28/03 03:01 AM, Red-VII wrote: I have scripting for:
handguns, automatic guns, rockets, knives, reloads, ammo, multiple weapons, weapon inacuracy, multi-warhead weapons, and the gun in a first person game to show ifferent angles depending where the crosshair is.
So if ya' want help, IM me, or email me-NO ATTACHMENTS!!!!! ive had emails with attachments that were probably viral but I dont have any viruses <^\./^>

I'm not sure about sniper guns but if your willing to share your multi weapon and weapon inacuracy codes I'd be very gratful.

Response to Actionscript codes here! 2003-08-28 04:48:25


I ahve this code for an enemy that attackes you if you get to close, he also follows you at a certain frame:
onClipEvent(load) {
timer=0
depth = 1
}

onClipEvent (enterframe) {
xdiff = (_root._player._x-_x);
ydiff = (_root._player._y-_y);
deg = Math.atan2(ydiff, xdiff);
distance = Math.sqrt((xdiff*xdiff)+(ydiff*ydiff))
_rotation = deg*57
if (distance >= 100) {
_x += Math.cos(deg) * 3
_y += Math.sin(deg) * 3
} else {
if (timer == 0) {
timer = 20
if (depth == 4) {
depth = 1
} else {
depth++
}
_root.attachMovie("bullet","bullet"+depth,depth)
_root["bullet"+depth]._x = _x
_root["bullet"+depth]._y = _y
_root["bullet"+depth]._rotation = deg*(180/Math.PI)
_root["bullet"+depth].lifetime = 50
} else {
timer--
}
}
for (i=1;i<5;i++) {
_root["bullet"+i]._x += Math.cos(_root["bullet"+i]._rotation/57) *20
_root["bullet"+i]._y += Math.sin(_root["bullet"+i]._rotation/57) *20
if (_root["bullet"+i].lifetime == 0) {
removeMovieClip(_root["bullet"+i])
} else {
_root["bullet"+i].lifetime--
}

}

}
This is Idorus script. I was wonder how I would make It goto another scene if the bullet hit the player.

Response to Actionscript codes here! 2003-08-28 05:47:39


At 8/27/03 04:06 PM, Norwegian_Blue wrote: Im sorry if this has been asked before but. I need a AS for making a car drive (In a GTA view)......

Madclock... What kind of game you thinking of making?

Well, i'm thinkin to make a platform game, yours is a good game idea too, can i help or sumtin ?
Greetz, you can contact me on MSn or AIm

Response to Actionscript codes here! 2003-08-28 08:40:15


eviLudy is good for AS if he is on, i said IF....

EVEYRBODY

WATCH OUT FOR CHATTITUDE, THE GAME THAT IS GONNA GET FRONTPAGE :-P

YOINK
- ChatClock

Response to Actionscript codes here! 2003-08-28 08:50:16


At 8/28/03 08:40 AM, ChatClock wrote: eviLudy is good for AS if he is on, i said IF....

Thats not nice... Am I only good for AS?


Swing a Little more!

.. ROCK OUT!

BBS Signature

Response to Actionscript codes here! 2003-08-28 08:58:16


At 8/28/03 08:40 AM, ChatClock wrote:
EVEYRBODY

WATCH OUT FOR CHATTITUDE, THE GAME THAT IS GONNA GET FRONTPAGE :-P

We will :D