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

We found 674 matches.


<< < > >>

Viewing 1-30 of 674 matches. 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 91623

1.

None

Topic: Vector based physics engine [AS3]

Posted: 03/01/09 07:56 PM

Forum: Flash

At 3/1/09 07:23 PM, ProfessorFlash wrote: Why is there an invisible force field around the lines?

That "force field" is actually the radius of the ball. This is the infrastructure of the engine, so the balls are invisible save for a small dot in their radii.


2.

None

Topic: Vector based physics engine [AS3]

Posted: 03/01/09 07:09 PM

Forum: Flash

I've finished the backbone of my particle-to-vector physics engine, and I need some feedback to properly make adjustments and iterations. Originally I went with a tile and grid based engine. While this was very fast, it was extremely limited because there were a set amount of tiles.

This engine does not use tiles. Instead it uses lines (vectors) as a source of collision. These lines can be of any length and can be drawn in any direction, so the possibilities are almost limitless. It is in theory much slower than the previous method, but this lag has to be witnessed and it still performs wonderfully.

All calculations are vector based (no trig), which means much more accuracy.

Controls for the engine are as follows:

Shift: This adjusts the mode (Point, Line) of the other two functions. It's initial setting is point.

Space: This deletes the most recently created point/line
Click/Release: If the mode is set to point, it creates a particle where you first clicked and it has a velocity opposite where you released. If the mode is set to line, it creates a line starting where you clicked and ending where you released.

Note: If there are no points currently on stage, lines will no longer be visible, though they are still there. To remedy this all that is necessary is to create an new point and the lines will reappear. This is an oversight, not a glitch.

Ta da.

I will not be handing out the source code, but I will be open to questions on how it works. It's not very complicated, so ask away.


3.

None

Topic: Parsing [AS3]

Posted: 11/13/08 05:16 PM

Forum: Flash

At 11/13/08 10:35 AM, Cojones893 wrote: You can do something like:

function test(n:String):String{
return n;
}

trace(this["test"]("test function"));

Thanks a lot, that really helped.

I'll post the final when it's done. It's got a lot of upper level functions, it'll even have a base changer ( 5 = 101 base 2).


4.

None

Topic: Parsing [AS3]

Posted: 11/12/08 11:00 PM

Forum: Flash

At 11/12/08 10:25 PM, CaptinChu wrote: Check out the indexof() function on strings. That will help a lot. indexof() finds where the first instance of a substring is within a string if that substring is in there. I believe it will help you.

Not really helpful. Any better ideas?


5.

None

Topic: Parsing [AS3]

Posted: 11/12/08 10:08 PM

Forum: Flash

I'm working on a calculator in flash (advanced) and I've already defined functions. Now all that's left for me to do is to get flash to execute functions typed by the user, for example, If input.text = "riemann_zeta(8.5)" how will I get flash to treat it as a function and execute it?


6.

None

Topic: Interactive Buddy Script Window.

Posted: 11/09/08 10:53 PM

Forum: Flash

If you've ever played the amazing game Interactive Buddy you probably remember the Script Window. It was a little text box where you could type in pre-set functions, and then execute them. Does anybody have any Idea how to do that, where the user has some control over the script from the .swf?


7.

None

Topic: Statutory Rape

Posted: 10/09/08 09:58 PM

Forum: General

Statutory rape is defined as sex with some one under the age of consent (which varies by state).

My question is: can a "close of age defence" be used. Surely an 18 year old would not be prosecuted for sex with a 17 year old. Also, if such a defence is accepted, then how far apart can the two people be of age?


8.

None

Topic: alright! my band wrote a song!

Posted: 10/07/08 08:05 PM

Forum: General

At 10/7/08 07:58 PM, Smokey651 wrote: Please tell me you guys can read actual music.. instead of just tabs.

Otherwise i refuse to call you musicians.

By that logic, someone is a terrible writer because they dislike cursive. Having an understanding of music has nothing to do with reading music. For some tabs are better because they're numerical and illustrate intervals more clearly.

This is all besides the point, however, as I'm sure the OP's band and music both suck.


9.

Angry

Topic: Dean Guitars

Posted: 09/28/08 10:43 PM

Forum: General

Look like shit. I'm tired of listening to a bunch of 15 year old cunts with Dragonforce t-shirts talking about how cool they are. Flames and points only make you look like a douchebag.

Dean Guitars


10.

None

Topic: 3D Engine [AS3]

Posted: 09/28/08 10:24 PM

Forum: Flash


11.

None

Topic: 3D Engine [AS3]

Posted: 09/28/08 10:19 PM

Forum: Flash

3D Engine, using x,y,z custom variable system.

Took about an hour to get in presentable shape. It can be used to generate shapes and colors, right now it makes a corkscrew. I'll post more designs later.

var points:Array = new Array;
var p1:Array = new Array;
var i:int = 0;
var fl:Number = 250;
var xl:Number = stage.stageWidth/2;
var yl:Number = stage.stageHeight/2;

for (i=0; i<500; i++) {
	points.push(new Array(new Point(0,0),
	Math.sin(i/10)*10,
	i/5-50,
	Math.cos(i/10)*10,
	((i<<16)+(i<<8)+i)
	));
}

stage.addEventListener(Event.ENTER_FRAME, enterFrame);

function enterFrame(evnt:Event):void {

	graphics.clear();

	var ay:Number = (mouseX-xl)/5000;
	var cy:Number = Math.cos(ay);
	var sy:Number = Math.sin(ay);
	var ax:Number = (mouseY-yl)/5000;
	var cx:Number = Math.cos(ax);
	var sx:Number = Math.sin(ax);

	for (i=0; i<points.length; i++) {

		p1 = points[i] as Array;

		var x1:Number = p1[1]*cy-p1[3]*sy;
		var z1:Number = p1[3]*cy+p1[1]*sy;
		var y1:Number = p1[2]*cx-z1*sx;
		var z2:Number = z1*cx+p1[2]*sx;

		p1[1] = x1;
		p1[2] = y1;
		p1[3] = z2;

		p1[0].x = xl+p1[1]*fl/(fl+p1[3]);
		p1[0].y = yl+p1[2]*fl/(fl+p1[3]);

		graphics.lineStyle(1,p1[4],.25);
		graphics.moveTo(p1[0].x-1,p1[0].y);
		graphics.lineTo(p1[0].x+1,p1[0].y);
		graphics.moveTo(p1[0].x,p1[0].y-1);
		graphics.lineTo(p1[0].x,p1[0].y+1);

	}

}

Do whatever you want with the script, I don't care.


12.

None

Topic: I made string.

Posted: 09/22/08 10:45 PM

Forum: Flash


13.

None

Topic: I made string.

Posted: 09/22/08 10:42 PM

Forum: Flash

I couldn't resist one last update. This one's like a really trippy tapeworm.


14.

None

Topic: I made string.

Posted: 09/22/08 08:05 PM

Forum: Flash

Mouse.hide();
var points:Array = new Array(new Point(0,0));
var i:int = 0;
var ns:Number = 500;
var sl:Number = 2;
var p1:Point = new Point();
var p2:Point = new Point();
var dx:Number = 0;
var dy:Number = 0;
var dis:Number = 0;

for (i=0; i<ns; i++) {
	points.push(new Point(i*.001+1,0));
}

stage.addEventListener(Event.ENTER_FRAME, enterFrame);

function enterFrame(evnt:Event):void {

	graphics.clear();
	graphics.lineStyle(1,0x000000,.3);

	points[0].x = mouseX;
	points[0].y = mouseY;
	
	for (i=0; i<points.length-1; i++) {
		p1 = points[i] as Point;
		p2 = points[i+1] as Point;
		dx = p2.x-p1.x;
		dy = p2.y-p1.y;
		dis = Math.sqrt(dx*dx+dy*dy);
		p2.x = p1.x+dx*(sl/dis);
		p2.y = p1.y+dy*(sl/dis);
		graphics.moveTo(p1.x, p1.y);
		graphics.lineTo(p2.x, p2.y);

	}
}

This is a slimmer, faster, and vector-er version. You'll notice it uses no MC's, only points, and that it doesn't use trig functions. sin, cos, and atan2 are all based on approximations, so there were faults. This was apparent when the mouse stopped yet the string "squirmed".

All your (and also mine too) attempts at gravity sucked, because it wouldn't let the string swing. I'm working on it, but it will take a while more.


15.

None

Topic: Inverse Kinematics Help.

Posted: 09/22/08 06:30 PM

Forum: Flash

I made a topic in which I posted the script to a "string" model.

Now I would like to learn how use IV to "link" two objects. My string linked only one object, the mouse, while the other end was free.

I have no I idea where to start so ideas, or even a script for me to comprehend, would be helpful.

Also, I hate Trig as well as trig functions, so I'm working on a vector interpretation of IV.


16.

None

Topic: I made string.

Posted: 09/21/08 11:27 PM

Forum: Flash

At 9/21/08 11:24 PM, Conlor wrote: pretty good dude, I played with it for a good couple of minutes. Maybe copy and pasting your code wasn't the best idea though: there's going to be some people who steal it.

And do what with it? It's something I whipped up in 10 minutes, it's no concern of mine.

Anyway, thanks for the feedback. All I need are suggestion for making it visually appealing.


17.

None

Topic: I made string.

Posted: 09/21/08 11:20 PM

Forum: Flash

Here. It's actually a chain that uses Inverse Kinematics, but with really tiny "links". initial color is random; color changes along string.

Script [AS3]:

var segs:Array = new Array();
var i:int = 0;
var ns:Number = 300;
var sl:Number = 2;
var dx:Number = 0;
var dy:Number = 0;
var angle:Number = 0;
//variables

var redu:uint = Math.random()*256;
var greenu:uint = Math.random()*256;
var blueu:uint = Math.random()*256;
var hue:ColorTransform = new ColorTransform();
//color components



for (i=0; i<ns; i++) {

	var seg:seg_link = new seg_link();
	segs.push(seg);
	stage.addChild(seg);
	seg.scaleX = .4;
	seg.scaleY = .2;
	//adding segments
	hue.color = ((redu << 16) + (greenu << 8) + blueu);
	seg.transform.colorTransform = hue;
	blueu += Math.random()*1;
	greenu += Math.random()*1;
	//adding dynamic color

}

stage.addEventListener(Event.ENTER_FRAME, enterFrame);

function enterFrame(evnt:Event):void {


	segs[0].x = mouseX;
	segs[0].y = mouseY;
	//First segment follows mouse. Others will folow afterwards


	for (i=0; i<ns; i++) {

		var s1:MovieClip = segs[i];
		var s2:MovieClip = segs[(i+1)];

		dx = s1.x - s2.x;
		dy = s1.y - s2.y;
		angle = Math.atan2(dy, dx);
		s2.rotation = angle*180/Math.PI;
		s2.x = s1.x-Math.cos(angle)*sl;
		s2.y = s1.y-Math.sin(angle)*sl;
		//Inverse Kitematic following

	}
}

Setup:

All that is required is a square MC with linkage: "seg_link"

Comments, suggestions, modifications.


18.

None

Topic: What new language should I learn?

Posted: 09/14/08 04:43 PM

Forum: General

Now before you post I would like to clarify that I do not want to learn a "cultural" language ( Such as Spanish, French, Icelandic, Japanese, Inuit... ), but rather an 'experimental" one such as Lojban

The language should be based on simplicity, clarity, unambiguity, and of course, it must have a reasonable amount of speakers so my efforts aren't wasted.

Any suggestions?


19.

None

Topic: Converting As2 To As3

Posted: 09/02/08 12:58 AM

Forum: Flash

At 9/1/08 11:18 PM, Shadoninja wrote: Well what as2 code is convertable?

It will need to be rewritten, but there should be much change (no more onEventFrame, variables must be data-typed, ETC)


20.

None

Topic: I need a physics tutorial.

Posted: 09/02/08 12:11 AM

Forum: Flash

I want to learn how to program a structure engine like the one in this game.

I don't care about the wheels, all I want to learn is the structure mechanisms and collision detection system. I have no idea where to start in terms of learning, though.


21.

None

Topic: Classical Music.

Posted: 08/25/08 11:23 PM

Forum: General

At 8/25/08 11:19 PM, NimbleElephant wrote: I'm not a big classical fan, but Fur Elise is one of my favorite songs in the world.

Like most classical songs, it really grabs my attention in the beginning, only to disappoint later.


22.

Angry

Topic: Classical Music.

Posted: 08/25/08 11:17 PM

Forum: General

Over the weekend I went back to my old house to move more things to my new place, and I stumbled upon an old CD collection. Most of these CD's sucked, and were just a bunch of lame disco compilation albums claiming to be "The best of the 70's" (Where's Zeppelin, or Neil Young?) .

One of the CD's in the pile was "The Elements of Music", a classical comp. album featuring some of the best knows pieces and composers of all time. Upon arriving home I popped the CD into my computer and grabbed my headphones. Instead of being presented with some of the best music of all time I instead was insulted with some of the most mundane songs I've ever heard. Not a single track in the 23 song album incurred even the slightest emotion.

Now don't get me wrong, I have nothing against instrumentals or instruments typical of orchestras (My second favorite group is Tin Hat Trio), but it was just disappointing.

I've come to the conclusion that the only reason the general public doesn't show mutual contempt for the genre is fear that if they do, a bunch of pretentious assholes will call them stupid.

>:[


23.

Angry

Topic: My Clarinet Won't Sound.

Posted: 08/18/08 09:51 PM

Forum: General

I've just started, so I'm entirely new. As far as I can tell, I've got it assembles right, but when I blow only the sound of air is present.

It might be the reed, so which way it supposed to face? How much of the mouth piece should it cover?

Any Ideas why it won't play?


24.

Resigned

Topic: Does anyone still write letters?

Posted: 08/04/08 08:54 PM

Forum: General

Since I moved to Phoenix I've been keeping in contact with friends via letter, and I gotta tell you, it's better than a phone. Writing allows things such as creative formatting, literary devises (more fun than they sound), and my favourite, CRUISE CONTROL FOR COOL.

Letters also force you to THINK about what you say, before the message is a actually sent, and there always the anticipation of waiting for a reply.

I've never felt right, talking on a phone, so letters are an obvious choice.

Does anybody here write letters?

Also, letters are cheaper than phones.

25.

None

Topic: Bands that just dont seem to fail.

Posted: 08/04/08 08:24 PM

Forum: General

System of a Down.
Queens of the Stone Age.
Tin Hat (Trio).

Early SOAD and QOTSA are kind of a disappointment, but the get better and better with time.


26.

None

Topic: Is this window too big?

Posted: 08/04/08 05:03 PM

Forum: Flash

By the way, this won't be submitted to NG, It will be released in an .exe format.


27.

None

Topic: Is this window too big?

Posted: 08/04/08 12:46 PM

Forum: Flash

The window size is 800 x 675. It fits fine on my computer, bet I'm worried about other monitors and resolutions.

My resolution is 1024 x 768.

Is this window too big?


28.

None

Topic: without geometry life is pointless

Posted: 08/03/08 12:18 AM

Forum: General

I don't know man, this Flower of Life of yours seems way too familiar to PHI (1.618...). As in, it is way over-hyped and has a ton of shit-for-brained fanatics. Although, this is just an unfounded first impression.


29.

None

Topic: without geometry life is pointless

Posted: 08/02/08 11:20 PM

Forum: General

At 8/2/08 11:18 PM, Fantum wrote: Without geometry we wouldn't have curves.

Yes, what would we do without out disgustingly anorexic women? Why, we'd have to put something else on our mud flaps!


30.

None

Topic: without geometry life is pointless

Posted: 08/02/08 11:17 PM

Forum: General

Your Lv. 38 Metrons Cube is no match for my Lv. 46 Number Theory!


All times are Eastern Standard Time (GMT -5) | Current Time: 11:58 PM

<< < > >>

Viewing 1-30 of 674 matches. 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 91623