00:00
00:00
Newgrounds Background Image Theme

Someone gifted MetalSlayer69 supporter status!

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!

error message? 2006-08-07 18:04:36


what the hell does this mean?:

**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 7: Statement block must be terminated by '}'
onClipEvent(enterFrame){

**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 25: Syntax error.

Total ActionScript Errors: 2 Reported Errors: 2


We are the resistance, we are the underground, we are Newgrounds: home of the original cock joke.

The world takes everything too seriously.

This is not a signature.

Response to error message? 2006-08-07 18:06:22


i can tell you got this from a tutorial cuz it say enter frame.


Blok' Party, Orbital Khaos, site, MSMstudios, Phrozen Phlame

BBS Signature

Response to error message? 2006-08-07 18:09:31


...actually i tried this code on the frame:

currentslotnum = 1;stop ();function addToslot (item) { if (!item.found) { item._x = eval("itemSlot"+currentslotnum)._x; item._y = eval("itemSlot"+currentslotnum)._y; item.found = true; currentslotnum++; }}
var bc=1000;
_root.onMouseDown=function(){
bc++;
if(bc>1100){ bc=1000; }
duplicateMovieClip("bullet","bullet","bull
et")
}

this one on the gun:

onClipEvent (mouseMove) {
Xd =_root._xmouse-_x;
Yd =_root._ymouse-_y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle*360 / (2*Math.PI))+0);
updateAfterEvent();
}

and this one on the bullet:

onClipEvent(load){
spd=20;
_x=_root.gun._x;
_y=_root.gun._y;
_rotation= _root.gun._rotation;
}
onClipEvent(enterFrame){
if(_name == "bullet"){
_x = -1000;
}else{
if (_rotation>180) {
_y += (spd*Math.cos( Math.PI/180*_rotation));
_x -= (spd*Math.sin( Math.PI/180*_rotation));
} else {
_y -= (spd*Math.cos (Math.PI/180*_rotation));
_x += (spd*Math.sin( Math.PI/180*_rotation));
}

if(_x>Stage.width || _x<0 || _y<0 || _y>Stage.height){

this.removeMovieClip();
}

}

because i tried every script i could find and it didnt work.


We are the resistance, we are the underground, we are Newgrounds: home of the original cock joke.

The world takes everything too seriously.

This is not a signature.

Response to error message? 2006-08-07 18:12:41


Lol! YOu have to put in a frame number where it says ENTER FRAME. Lol

Response to error message? 2006-08-07 18:13:32


...what #?


We are the resistance, we are the underground, we are Newgrounds: home of the original cock joke.

The world takes everything too seriously.

This is not a signature.

Response to error message? 2006-08-07 18:41:58


You idiots he's just missing a curly brace somewhere at the end of one of his copied *cough cough* codes. ( something like this } )

Here is my duplication code because you are lucky i'm making a game like that. Use the same rotation code though and change the instance names.

stop();
onMouseDown = function () {
var bc = 1000;
// bulletcount
_root.onMouseDown = function() {
bc++;
if (bc>1100) {
bc = 1000;
}
duplicateMovieClip("bullet", "b"+bc, bc);
}
};
};