Newgrounds.com — Everything, By Everyone.

Checking login status…

USERNAME:

PASSWORD:

Logging in…

Logged in as:
.
Logging out…
Inbox My Account Log Out


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!

Author Search Results: 'wsp'

We found 206 matches.


<< < > >>

Viewing 1-30 of 206 matches. 1 | 2 | 3 | 4 | 5 | 6 | 7

1.

None

Topic: Help Please!

Posted: 01/16/08 04:56 PM

Forum: Flash

At 1/15/08 11:39 PM, Woadraiders wrote: Hey, I'll play around with the code tomorrow, see if I can't get a working demo set up, I'll PM you tomorrow with the Fla and Swf

Thank you! Your being too generous with this :)


2.

None

Topic: Help Please!

Posted: 01/15/08 10:43 PM

Forum: Flash

Bump. Can anyone else please help?


3.

None

Topic: Help Please!

Posted: 01/15/08 08:46 PM

Forum: Flash

Thanks for the help, but sadly the code doesn't work :;( I'm on the right track into getting it though :D


4.

Questioning

Topic: Help Please!

Posted: 01/15/08 07:44 PM

Forum: Flash

I need help on 3 things. Both are on how the game Wpnfire achieves these results.

1. How do you make that sort of bullet when you fire? I know how to attach a bullet and make it follow a certain path depending on your gun's rotation, etc. But what they did was create a white line that's the bullet and can detect whether or not it hits something. How can I achieve this?

2. How can I rotate the character's arm smoothly like that? My mouse rotation script follows the mouse exatctly, there character's arm kind of "smoothly" rotates/follows the mouse around the screen. How can I achieve this?

3. When you move your mouse around the screen, the V-cam follows it, but still keeps it on the player's general position. How can I achieve this?

Many thanks to all who did and/or attemped to help and is very much apreciated. Wsp.


5.

Shouting

Topic: Loading Sound From Seperate .swf

Posted: 12/05/07 04:06 PM

Forum: Flash

I want to import the files from a seperate .swf so I can drastically reduce file size of my flash. With just 2 songs it takes up a whole 2MB! Many thanks for all your help, wsp.


6.

None

Topic: Loading Sound From Seperate .swf

Posted: 12/05/07 05:50 AM

Forum: Flash

Bump, can anyone help me please?


7.

Expressionless

Topic: Loading Sound From Seperate .swf

Posted: 12/04/07 09:30 PM

Forum: Flash

I know it has been done in Madness Interactive, which I did check up on and looked through the code and found nothing, as well as Googled a bunch of stuff, and still nothing. Can anyone help me with this? Many thanks in advance, wsp.


8.

None

Topic: Help With Camera Movement Please

Posted: 11/30/07 05:42 PM

Forum: Flash

At 11/28/07 06:59 PM, archont wrote: Ah hah then you are a capable coder.

The algorithm is pretty simple. You have to center the camera on the point in the middle of the line that connects the player avatar and the cursor.

var pPlayer:Point;
var pCursor:Point;
var pCameraFocus:Point = new Point();
pCameraFocus.x=(pPlayer.x+pCursor.x)<<2;
pCameraFocus.y=(pPlayer.y+pCursor.y)<<2;
camera.focus(pCameraFocus);

I'm really sorry for double-posting, but that code seems to be in AS3, im using flash 8 (AS2), can anyone help me with the code in AS2? lotsofthx!


9.

None

Topic: Help With Camera Movement Please

Posted: 11/30/07 05:39 PM

Forum: Flash

At 11/28/07 08:43 PM, PicoZX wrote: function camControl():Void {
parentColor.setTransform(camColor.getTra nsform());
var scaleX:Number = sX/this._width;
var scaleY:Number = sY/this._height;
_parent._x = cX-(this._x*scaleX);
_parent._y = cY-(this._y*scaleY);
_parent._xscale = 100*scaleX;
_parent._yscale = 100*scaleY;
}
function resetStage():Void {
var resetTrans:Object = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentColor.setTransform(resetTrans);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
// make frame invisible
this._visible = false;
// Capture stage parameters
var oldMode:String = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX:Number = Stage.width/2;
var cY:Number = Stage.height/2;
var sX:Number = Stage.width;
var sY:Number = Stage.height;
Stage.scaleMode = oldMode;
// create color instances for color
// transforms (if any).
var camColor:Color = new Color(this);
var parentColor:Color = new Color(_parent);
// Make the stage move so that the
// v-cam is centered on the
// viewport every frame
this.onEnterFrame = camControl;
// Make an explicit call to the camControl
// function to make sure it also runs on the
// first frame.
camControl();
// If the v-cam is ever removed (unloaded)
// the stage, return the stage to the default
// settings.
this.onUnload = resetStage;

This might work.
Make a symbol, then put this.

Ahh, well here's my V-Cam:
/*<Note:> All terms and phrases will be explained at the end of this code*/
import flash.geom.Matrix; //Import the flash Matrix class <NOTE:>This is the location if you are using Flash Proffesional 8: My Computer> Local Disk(C:)> Program Files> Macromedia> Flash 8> en> First Run> Classes> FP8> flash> Geom> Matrix
import flash.geom.Transform; //Import the flash Transform class <NOTE:>This is the location if you are using Flash Proffesional 8: My Computer> Local Disk(C:)> Program Files> Macromedia> Flash 8> en> First Run> Classes> FP8> flash> Geom> Transform
import flash.geom.ColorTransform; //Import the flash ColorTransform class <NOTE:>This is the location if you are using Flash Proffesional 8: My Computer> Local Disk(C:)> Program Files> Macromedia> Flash 8> en> First Run> Classes> FP8> flash> Geom> ColorTransform
var animator = new Transform(this); //We create a new variable called "animator". With "animator" we state that its tranformation is equal to "this", the camera MC
var camera = new Transform(this._parent); //We create a new variable called "camera". With "camera" we state that its color tranformation is equal to "this._parent", the _root stage, which is everything on that frame
var camColor = new Color(this); //We create a new variable that will get all of the color effects applied to the camera
var parentColor = new Color(this._parent); //We create a new variable that will get the color effects of the _root timeline
var Width = Stage.width; //We create a varable called "Width" which is equal to the stage's total width
var Height = Stage.height; //We create a variable called "Height" which is equal to the stage's total height
this._visible = false; //Makes the camera MC invisible

function setCamera() { //We create and define the function "setCamera"
this._parent.filters = this.filters; //The filter that is put on the camera MC (EG. the blur filter) will now effect everything on the stage
parentColor.setTransform(camColor.getTra nsform()); //We apply te color effects used on the camera to every object that's on the stage
var stageMatrix = animator.matrix; //We create a new variable called "stageMatrix", which is equal to our variable "animaotr"'s matrix
camera.ColorTransform = animator.ColorTransform; //our variable "camera"'s ColorTransform is equal to our varialbe "animator"'s ColorTransform
stageMatrix.invert(); //We call upon the invert() method and apply it to our variable "stageMatrix"
stageMatrix.translate(Width * 0.5, Height * 0.5); //We call upon the translate() method and apply it to our variable "stageMatrix". Within our translate() method our X factor is Width * 0.5 (half of our stage width) and our Y factor is Height * 0.5 (half of our stage height)
camera.matrix = stageMatrix; //our variable "camera"'s matrix is equal to our variable "stageMatrix"
}

function stageRestore() { //We create and define the function "stageRestore"
_root._xscale = 100; //Our _root timeline's _xscale is set back to its original size
_root._yscale = 100; //Our _root timeline's _yscale is set back to its original size
_root._x = Stage.width / 2; //Our _root timeline's X position is set back to the centre of the stage
_root._y = Stage.height / 2; //Our _root timeline's Y position is set back to the centre of the stage
}

this.onEnterFrame = setCamera; //We call upon the "setCamera" function is called every frame
this.unload = stageRestore; //If the camera is ever removed, then it will restore the stage back the way it originally was by using the "stageRestore" function

/*Terms And Phrases:
Matrix: A transformation matrix that determines how to map points from one coordinate space to another
Transform: The Transform class collects data about color transformations and coordinate manipulations that are applied to a MovieClip object
ColorTransform: The ColorTransform class lets you mathematically adjust all of the color values in a movie clip
filters: An indexed array containing each filter object currently associated with the movie clip
invert: Performs the opposite transformation of the original matrix
translate: Modifies a Matrix object so that the effect of its transformation is to move an object along the x and y axes
matrix: An array of 20 elements for 4 x 5 color transform
<NOTE:> All of these definitions were copied from Flash's Help Menu*/

P.S. Code is commented, also this V-Cam accepts rotation and all kinds of effects ;)

And to archont, thx! ill try the code out and hope it works! :)

P.S. how do u get that actionscript code box thingy? thx alot for sum help :)


10.

None

Topic: Help With Camera Movement Please

Posted: 11/28/07 06:47 PM

Forum: Flash

At 11/28/07 06:19 PM, mascalex wrote: if you want your camera to move around download a flash camera, like go on google and type in something like flash v cam. once you have downloaded one it is like a mc and you can just move it around to flash to get the parts you want, instead of havin to move all of the background etc.

I got that much :P I actually made my own V-Cam a while back. I was wondering how you can get the movement where the camera follows the mouse around a certain area around the player. I tryed but failed miserabley. Can anyone else help?


11.

Expressionless

Topic: Help With Camera Movement Please

Posted: 11/28/07 05:45 PM

Forum: Flash

Hello there! I've been playing the game Smileys War and I really like the camera movement in that game and think it would be a nice touch for a game that I'm producing right now. Can anyone help me in achieving such an effect? Many thanks in advance, wsp :)


12.

None

Topic: Loading External .txt File

Posted: 11/24/07 06:30 PM

Forum: Flash

At 11/24/07 04:45 PM, SNARE wrote: Is the txt file online?

no


13.

None

Topic: Loading External .txt File

Posted: 11/24/07 11:31 AM

Forum: Flash

At 11/23/07 03:57 PM, GustTheASGuy wrote: Use the LoadVars class. The file format is 'variable=value&variable2=value2&etc'.

I've got all that down, but instead of having the .txt file in the format of variable=value&variable2=value2&etc, is there any way to make it like this:

[blah]
var1=5
var2=10
var3=15

Thanks again for your help! :)


14.

Shouting

Topic: Loading External .txt File

Posted: 11/23/07 03:40 PM

Forum: Flash

I have seen a tutorial on this, but it was very un-thorough and it didn't have it the way I was looking at. Is there any way to load individual variables from a .txt file, like so:

[level 1]
enemy1=5
enemy2=10
enemy3=15

[level 2]
etc...

It's done in some other Flash games and in Soldat, and it would make scripting ALOT easier as I can change all of the variables without loading Flash. Thanks very much for your time and any help given. Wsp.


15.

None

Topic: What Song Is This?

Posted: 11/17/07 04:08 PM

Forum: Where is / How to?

At 11/17/07 02:36 PM, Sk8erGirl13 wrote: This is it.

Ahh! Thank you so much! I really appreciate this ;)


16.

Expressionless

Topic: What Song Is This?

Posted: 11/17/07 01:33 PM

Forum: Where is / How to?

What song is played during the main menu in Defend Your Computer? I've heard it around and can't seem to find it anywhere else. Thanks for your help, wsp.


17.

None

Topic: Two Questions

Posted: 09/28/07 06:43 PM

Forum: Programming

At 9/28/07 06:41 PM, sasuke2910 wrote: java script goto w3schools.com
and you use a mixture of programs but mostly c++

and java script and action script are not the same

Really? I've been told that they're highly similar in most areas, witha few major changes in some areas. Also, thanks for all of the help! :D


18.

Elated

Topic: Two Questions

Posted: 09/28/07 06:38 PM

Forum: Programming

Question 1. Can anyone show me a few links for some javascript tutorials? I'm already highly familiar with Actionscript and want to make a website or something.

Question 2. What kind of coding language do they use to make video games for your console?

Thanks for any help and responses (except the bad ones :P) many thanks in advance, wsp.


19.

Elated

Topic: Flash Co-op Games

Posted: 09/23/07 10:18 PM

Forum: Where is / How to?

Does anyone know of any fun and addicting flash games that are Co-op/multiplayer? Any help would be great and many thanks in advance! :D


20.

None

Topic: Loading Sound Using loadMovie()

Posted: 09/23/07 12:28 AM

Forum: Flash

well i just want to load the sound externally to reduce file size, can u help?


21.

Shouting

Topic: Loading Sound Using loadMovie()

Posted: 09/22/07 10:36 PM

Forum: Flash

bump can anyone help please?


22.

Questioning

Topic: Loading Sound Using loadMovie()

Posted: 09/22/07 06:37 PM

Forum: Flash

Can someone help me loading sound from a seperate .SWF file and playing it in another? Sorta like Madness Interactive and Mr.Sound. Any help is greatly appreciated. Thanks, wsp.


23.

None

Topic: Rotation Depending On Mouse Speed

Posted: 09/21/07 05:06 PM

Forum: Flash

At 9/21/07 02:32 PM, UnknownFury wrote: Well, how are you working out the mouse speed? Because you should have minus if your moving it left. Use that to define weather its left or right.

I use this code:

var XX = mc._x;
var X = mc._x;
var YY = mc._y;
var Y = mc._y;
function onEnterFrame() {
XX = mc._x;
YY = mc._y;
distance = Math.sqrt(Math.pow(XX - X, 2) + Math.pow(YY - Y, 2));
trace(distance);
X = mc._x;
Y = mc._y;
}

It doesn't work in calculating left or right. Any help?


24.

None

Topic: Rotation Depending On Mouse Speed

Posted: 09/21/07 02:24 PM

Forum: Flash

Well, I put this down:

xAr = 0;
i = 0;
Mouse.hide();
onEnterFrame = function () {
xAr[i] = _xmouse;
xx = xAr[i] - xAr[i - 1];
i++;
xSpeed = xx;
paddle._x = _xmouse;
paddle._y = _ymouse;
paddle._rotation = xSpeed;
};

And that doesn't seem to work. Am I doing something wrong? Also, thanks for your help :D


25.

Shouting

Topic: Rotation Depending On Mouse Speed

Posted: 09/21/07 12:59 PM

Forum: Flash

Does anyone know how to make an MC rotate left and right depending on the mouse speed? I know how to calculate mouse speed and rotate it depending on that, but the only problem is I can't get it to determine if the mouse is going left or right. An example is in Smash 2. Any help will be greatly appreciated, and many thanks in advance.
-wsp


26.

Misunderstood

Topic: Api Mc Inside An Mc...?

Posted: 09/05/07 07:32 PM

Forum: Flash

bump


27.

Expressionless

Topic: Api Mc Inside An Mc...?

Posted: 09/04/07 11:08 PM

Forum: Flash

Is there anyway to make an API movieclip inside a pre-existing API movieclip? Or can I at least access the INSIDE of the API movieclip and not just refer to it as with (MC) { or MC._x, etc.. Thanks for the help, wsp :D


28.

Happy

Topic: Free Animated Sprites

Posted: 08/30/07 04:59 PM

Forum: Flash

Well, I knew that you have to animate the sprites yourself and whatnot, but it doesn't matter if there animated or just a sprite sheet and I have to put it all together... So does anyone have any links?


29.

None

Topic: Free Animated Sprites

Posted: 08/30/07 04:51 PM

Forum: Flash

At 8/30/07 04:45 PM, jakk22 wrote: then you dont deserve other peoples help.

Ok, so I'm not the best animator out there, and that means that I can't ask anyone for help? Or maybe it's because I can't draw? So That also means I can't ask anyone for help? That seems a bit odd, don't you think? Also, it's because I'd rather have good visuals to see the effects I've made and not some cheaply drawn stick. It looks much nicer.


30.

Expressionless

Topic: Free Animated Sprites

Posted: 08/30/07 04:36 PM

Forum: Flash

Hi there, I've been looking around on Google, Yahoo! and AS: Main for some links for free animated sprites but just can't seem to find any. Does anyone have any links that they could share? Thanks in advance, wsp.

P.S. I'm just using them for ease of animating for a few tests I'm doing for actionscript. I'm a lazy animator (and a very bad one, too!) :P


All times are Eastern Daylight Time (GMT -4) | Current Time: 07:00 PM

<< < > >>

Viewing 1-30 of 206 matches. 1 | 2 | 3 | 4 | 5 | 6 | 7