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: 'Runouw'

We found 4 matches.


<< < > >>

Viewing 1-4 of 4 matches.

1.

None

Topic: Need Help with Saving

Posted: 05/22/06 11:09 PM

Forum: Flash

I am currently making a large game that would require saving, however, I do not know of anyway to save your file. I need a way to make it so it saves specific variables onto your computer (suposedly in a cookie) so it can acess it later after you close it. All I am asking for is a code and a simple explanation on how to use it.


2.

None

Topic: Animated mouse

Posted: 01/29/06 06:24 PM

Forum: Flash

I made a simple code for one here. Put this in the frame you want it to happen in:

dotcount = 0;
onEnterFrame = function () {
duplicateMovieClip("dot", "dot" + dotcount, dotcount);
tellTarget ("dot" + dotcount) {
_y = _root._ymouse;
_x = _root._xmouse;
_rotation = Math.random()*360
}
dotcount++;
};

Make the movieclip's instance name called "dot" and on the frame in the movieclip you it to dissapear put this:

removeMovieClip(this);


3.

None

Topic: Help with movement script please

Posted: 01/29/06 06:08 PM

Forum: Flash

Oops that mas my fault there, you see in the part when it's going up, and left. Try changeing the "min" with the "max"

Heres the whole code again with the glitch fixed:

onClipEvent (load) {
this.speed = 0;
this.accel = 0.5;
this.maxspeed = 5;
this.minspeed = 0.5;
this.decel = 0.8;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT) && !Key.isDown(Key.LEFT)) {
xspeed += accel;
xspeed = Math.max(xspeed, minspeed);
xspeed = Math.min(xspeed, maxspeed);
}
if (Key.isDown(Key.LEFT) && !Key.isDown(Key.RIGHT)) {
xspeed -= accel;
xspeed = Math.min(xspeed, -minspeed);
xspeed = Math.max(xspeed, -maxspeed);
}
if (Key.isDown(Key.UP) && !Key.isDown(Key.DOWN)) {
yspeed -= accel;
yspeed = Math.min(yspeed, -minspeed);
yspeed = Math.max(yspeed, -maxspeed);
}
if (Key.isDown(Key.DOWN) && !Key.isDown(Key.UP)) {
yspeed += accel;
yspeed = Math.max(yspeed, minspeed);
yspeed = Math.min(yspeed, maxspeed);
}
if (!Key.isDown(Key.RIGHT) && !Key.isDown(Key.LEFT)) {
xspeed *= decel;
}
if (!Key.isDown(Key.UP) && !Key.isDown(Key.DOWN)) {
yspeed *= decel;
}
_y += yspeed;
_x += xspeed;
}

The !key.isdowns need to be separated for the _x and _y. Otherwise if you hold down one button after going diagonal, you still go diagonal.....

I think this should work. Sorry if it doesn't.


4.

None

Topic: Help with movement script please

Posted: 01/29/06 03:19 PM

Forum: Flash

I think this is what you mean...

onClipEvent (load) {
this.speed = 0;
this.accel = 0.5;
this.maxspeed = 5;
this.minspeed = 0.5;
this.decel = 0.8;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT) && !Key.isDown(Key.LEFT)) {
xspeed += accel;
xspeed = Math.max(xspeed, minspeed);
xspeed = Math.min(xspeed, maxspeed);
}
if (Key.isDown(Key.LEFT) && !Key.isDown(Key.RIGHT)) {
xspeed -= accel;
xspeed = Math.max(xspeed, -minspeed);
xspeed = Math.min(xspeed, -maxspeed);
}
if (Key.isDown(Key.UP) && !Key.isDown(Key.DOWN)) {
yspeed -= accel;
yspeed = Math.max(yspeed, -minspeed);
yspeed = Math.min(yspeed, -maxspeed);
}
if (Key.isDown(Key.DOWN) && !Key.isDown(Key.UP)) {
yspeed += accel;
yspeed = Math.max(yspeed, minspeed);
yspeed = Math.min(yspeed, maxspeed);
}
if (!Key.isDown(Key.RIGHT) && !Key.isDown(Key.LEFT)) {
xspeed *= decel;
}
if (!Key.isDown(Key.UP) && !Key.isDown(Key.DOWN)) {
yspeed *= decel;
}
_y += yspeed;
_x += xspeed;
}

I added a few changes to the code and made it multiply by a number to slow down, instead of subtract.


All times are Eastern Daylight Time (GMT -4) | Current Time: 01:27 AM

<< < > >>

Viewing 1-4 of 4 matches.