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

We found 1,201 matches.


<< < > >>

Viewing 1-30 of 1,201 matches. 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 92541

1.

None

Topic: Rhythm Game...Arrays?

Posted: 06/21/08 01:35 AM

Forum: Flash

I would have an array of the times you want notes to appear, an array for the direction/position of the object, then an array that would record the time of a keystroke. Then you would check if the keystroke array against the direction array to see if you pressed the right button and finally get the difference between the beat time and the press time in order to see if the note was pressed at the right time.


2.

None

Topic: Solved Topics in Flash Forum

Posted: 06/09/08 06:08 PM

Forum: Flash

Email/PM Tom, Wade or one of the other admins. I'm sure they will appreciate the idea.


3.

None

Topic: Large Scrolling Background

Posted: 06/03/08 09:20 PM

Forum: Flash

Bump


4.

None

Topic: Booleans

Posted: 06/03/08 07:16 PM

Forum: Flash

At 6/3/08 06:02 PM, GuyWithHisComp wrote:
At 6/3/08 05:53 PM, Nuggs wrote: This is the nesting the ifs is the fastest way to do it.
In what way is it faster?

Read this article

Here

9) Using nested if
Whenever using complex conditional expressions you can optimize the code by breaking them into single nested conditions.
This way you don't have to evaluate all the expressions all the times.
The following code is what we used for the benchmark: even if the conditional expressions are pretty simple the speed increse is significant.
Also you can notice that the expression that evaluates as false is in 3rd position, so you may even get better performance when it is placed in 2nd or 1st position.

MAX = 20000
a = 1
b = 2
c = -3
d = 4

var i=MAX
while(--i > -1)
{
	if (a == 1 && b == 2 && c == 3 && d == 4)
	{
		var k = d * c * b * a
	}
}


var i=MAX
while(--i > -1)
{
	if (a == 1)
	{
		if (b == 2)
		{
			if (c == 3)
			{
				if (d == 4)
				{
					var k = d * c * b * a
				}
			}
		}
	}
}

5.

None

Topic: AS help.

Posted: 06/03/08 06:18 PM

Forum: Flash

Use Key listeners

var keyListener:Object = new Object();
keyListener.onKeyDown = function() {
       var keyCode = Key.getCode();
        if (keyCode == YOURKEYCODE) {
                     //DO STUFF
        }
} 
Key.addListener(keyListener);

6.

None

Topic: Booleans

Posted: 06/03/08 05:53 PM

Forum: Flash

This is the nesting the ifs is the fastest way to do it.

if(_root.contact2 == true) {
     if(hitTest(_root.next)) {
          _root.nextFrame();
     }
}

7.

None

Topic: Large Scrolling Background

Posted: 06/03/08 05:43 PM

Forum: Flash

Should I have the animated parts cached as Bitmaps, or should I make those separately boxed off vectors?


8.

None

Topic: Large Scrolling Background

Posted: 06/02/08 11:48 PM

Forum: Flash

What is the best way to scroll a large background without slowing down the flash?


9.

None

Topic: MageQuest Development Blog

Posted: 05/27/08 02:08 AM

Forum: Flash

Looks pretty damn sweet, but I would think about adding a transition from walking to climbing a ladder. It seems kind of jerky now.
But then again I'm just being nit-picky. Awesome engine.


10.

None

Topic: Dammit fuc u vcam

Posted: 05/27/08 01:32 AM

Forum: Flash

Try the Reanimator Cam extension. Basically, it is a more advanced version of the vcam because it has the ability to rotate and add filters (i think). You need to download Flash Extension Manager to install it though. After you install it it will be under Commands>new camera.
I hope this helps.


11.

Resigned

Topic: Official Bleach Game Thread

Posted: 05/15/08 11:45 PM

Forum: Flash

I think you are getting yourself in way over your head. Coding a game with that much stuff in it could take an intermediate coder a couple months, and may take a beginner coder, such as yourself, even longer. Start small, then work your way up. From personal experience, large projects need lots of contemplation before execution, that is, if you don't want to run into tons of bugs and contradicting code. So take what you've done in this engine and commit it to experience before you frustrate the hell out of yourself trying to fix one bug in a 1000+ line code game.

I'm not trying to insult your intelligence, I just think you need a little more experience in coding.


12.

Blushing

Topic: The Flash 'Reg' Lounge

Posted: 05/10/08 12:26 AM

Forum: Flash

Cubic Bezier Curves

Check out my project for math class. I used flashes built in curveTo method which only creates quadratic bezier curves to approximate a cubic bezier curve using a midpoint method. I think it is pretty!!

http://spamtheweb.com/ul/upload/090508/8 4083_Bezier_curve.php


13.

None

Topic: Trig Or Sqrt

Posted: 04/24/08 10:16 PM

Forum: Flash

I'm almost positive a sqrt will be faster because it is an operation. When you use cos/sin flash has to retrieve these numbers from a separate as file.


14.

None

Topic: Ohnoes! Trigonometry Is Fraking Up

Posted: 01/14/08 06:51 PM

Forum: Flash

This code should make it bounce off the walls.

xspeedvar *= -.9*((_root.orb.hitTest(left_wall))+(_root.orb.hitTest(right_wall)))
yspeed = -.9*((_root.orb.hitTest(top_wall))+(_root.orb.hitTest(top_wall)))

15.

None

Topic: The Flash 'Reg' Lounge

Posted: 01/12/08 08:10 PM

Forum: Flash

Puppy

Today my family and I picked up our new puppy. He is a male beagle mix, but we don't know what to name him. He came with the name Donner, but we want to name him something different. Can you guys think of any names?
As of now it is between Cody, Donner, and Comet, but if you guys have any suggestions please tell me.

Here are some pictures
http://search.petfinder.com/petnote/disp laypet.cgi?petid=9793282

The Flash 'Reg' Lounge


16.

None

Topic: adobe flash Cs3

Posted: 01/08/08 04:28 PM

Forum: Flash

At 1/8/08 04:15 PM, fullmetalacehmist wrote: it's just that there's nowhere i can type

Click on the script-assist button in the corner if you want to freehand the code.
Otherwise you can click the code snippets on the side, or you can use shortcuts like Esc+f+n (new function), or Esc+g+s (gotoAndStop).


17.

None

Topic: The Flash 'Reg' Lounge

Posted: 01/08/08 04:12 PM

Forum: Flash

Vista

Does flash 8 work on vista if you set the compatibility mode to XP Sp2, or does it just not install. I want to know this before I try to download it on my new laptop.


18.

None

Topic: Circular Path

Posted: 12/11/07 10:28 PM

Forum: Flash

Ah I figured it out. Since the fps timer returned Nan for the first 9 frames, it added that infinite value to time. So when the fps timer returned real values, it could not add the finite numbers to the previous infinite ones.

Thanks so much for your help!

This was bugging me like crazy


19.

None

Topic: Circular Path

Posted: 12/11/07 12:06 AM

Forum: Flash

I know, parseFloat will only work if the words come after the number, but the text is not included in the actual version, it only displays the frames per second (without the text)


20.

None

Topic: Circular Path

Posted: 12/09/07 08:25 PM

Forum: Flash

Oh.. that was just for the test... it is not in the real thing, disregard it please. If I pm you the real file will you help me?


21.

None

Topic: Circular Path

Posted: 12/09/07 02:53 PM

Forum: Flash

Here
This is my problem

Remove the black blur to see the difference
I need to use the fps at runtime in order to change how fast the object is moving or else it will be too slow, but whenever I use that, I get NaN


22.

None

Topic: Circular Path

Posted: 12/09/07 12:10 PM

Forum: Flash

I'm trying to make the time it takes for the object to make a complete rotation equal to 60 seconds, or any other value, but I'm getting a NaN when I try to add radPerSec to time


23.

None

Topic: Circular Path

Posted: 12/09/07 01:24 AM

Forum: Flash

Mmmmk... I'm trying to make an object rotate around an ovular (sp?) path using only actionscript, but I'm having some problems

onClipEvent (load) {
	var time:Number = 0;
	var framePerSec:Number = 40;
	var radPerFrame:Number = 0;
}
onClipEvent (enterFrame) {
	framePerSec = parseFloat(_root.fps_timer.f.text);
	//_root.fps_timer.f.text is a text box that tells me the fps
	trace(typeof (framePerSec));
	//this returns number
	radPerFrame = (2*Math.PI)/(framePerSec*60);
	//conversion
	trace(typeof (radPerFrame));
	//this returns number
	time += radPerFrame;
	trace(typeof (time));
	//this returns number
	trace(time);
	//returns NaN
	_x += 2.25*Math.cos(time);
	_y += 2*Math.sin(time);
	//movement functions
}

Can anyone help? It doesn't seem to want to add radPerFrame to time... but all of the vars are numbers


24.

None

Topic: Character outrunning background

Posted: 12/06/07 08:32 AM

Forum: Flash

or you could use a while() loop

while(character.hitTest(ground)){
character._y++
gravity=0
}else{
gravity=10
}

25.

None

Topic: platform game

Posted: 12/04/07 05:00 PM

Forum: Flash

You should look Here for an all- code based way of doing it.
It is the only way I know of that it can be done.


26.

None

Topic: Dynamic curved landscape

Posted: 12/01/07 10:01 PM

Forum: Flash

Usually when you use AS to draw with curve to, you get points at connecting points on the line. If you use a sine wave, the curve is smooth, and has no points.


27.

Resigned

Topic: Dynamic curved landscape

Posted: 12/01/07 08:58 PM

Forum: Flash

Is there a way to make a dynamic landscape that is perfectly curved using sin waves? or do i need to create it with curve to?
either way please help.


28.

None

Topic: The Flash 'Reg' Lounge

Posted: 11/28/07 09:14 PM

Forum: Flash

Oregon Trail Game

I was actually planning on making one, but I'll need someone to code it.

Anyone wanna help?

Here's what I have made so far, its the in game shop (might change the menu):
Better Quality

The Flash 'Reg' Lounge


29.

None

Topic: The Flash 'Reg' Lounge

Posted: 11/27/07 11:34 PM

Forum: Flash

Oregon Trail

Today in my history class we talked about the Oregon Trail, and someone mentioned the video game.
I played this game during 2nd grade on one of four Mac-II's (you know the ones that only ran applications when a floppy disc was inserted). I downloaded the ROM today (shhhhhh!) and still find the game fun yet challenging. This game is one of the few things I remember from elementary school and I was wondering if any of you have played it and/or if impacted your life as much as mine?

For those of you who do'nt know what it is


30.

Elated

Topic: Super Disability Collab

Posted: 11/22/07 11:39 PM

Forum: Flash

Yay! Its finally done!!!


All times are Eastern Daylight Time (GMT -4) | Current Time: 06:03 PM

<< < > >>

Viewing 1-30 of 1,201 matches. 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 92541