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: 'Disarray-yarrasiD'

We found 1,474 matches.


<< < > >>

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

1.

None

Topic: Wide Layout

Posted: 05/27/09 03:33 PM

Forum: NG News

Interesting new layout :D

I just hope that it doesn't suffer from lag issues.


2.

None

Topic: AS3 list

Posted: 05/03/09 01:38 PM

Forum: Flash

At 5/3/09 01:03 PM, Deathcon7 wrote: Unfortunately, this is the only list in flash:

http://livedocs.adobe.com/flash/9.0/Acti onScriptLangRefV3/fl/controls/List.html

Linked list is something different.

Well thats pretty shitty...

anyway here is a quick little node class that I whipped up in about 20 minutes that offers what I was talking about.:

package  
{
	/**
	 * For some reason the makers of as3 decided not to include a friggin simple linked list class
	 * that allows traversing and constant time addition and removal operations. Does not include an
	 * itterator, but its set up so that it doesn't need one.
	 * @author  TheYarrasid
	 * @version 5/3/2009
	 */
	public class Node 
	{
		public function Node(aPreviousNode:Node, aObject:Object) 
		{
			previousNode = aPreviousNode;
			object = aObject;
			if (hasPrevious())
			{
				previousNode.addNext(this);
			}
		}
		
		public function addNext(aNextNode:Node):void
		{
			nextNode = aNextNode;
		}
		
		public function addPrevious(aPreviousNode:Node):void
		{
			previousNode = aPreviousNode;
		}
		public function hasNext():Boolean
		{
			return nextNode != null;
		}
		
		public function hasPrevious():Boolean
		{
			return previousNode != null;
		}
		
		public function getObject():Object
		{
			return object;
		}
		
		public function previous():Node
		{
			return previousNode;
		}
		
		public function next():Node
		{
			return nextNode;
		}
		
		public function removeNode():void
		{
			if (hasPrevious())
			{
				previousNode.addNext(nextNode);
			}
			if (hasNext())
			{
				nextNode.addPrevious(previousNode);
			}
		}
		var previousNode:Node;
		var nextNode:Node;
		var object:Object;
	}
}

3.

None

Topic: AS3 list

Posted: 05/03/09 12:53 PM

Forum: Flash

Does anyone know if there a native list class in as3 that permits constant time addition and removal operations, or am I going to have to make my own?


4.

Elated

Topic: Zombie Maps

Posted: 05/01/09 03:51 PM

Forum: Flash

Right now I am working on a zombie game similar to the zombie infection simulator but at a far larger scale (on the order of 4 000 to 80 000 infected depending on the level) and with greater complexity and interactivity.

The problem is that I suck at level design and am even worse at drawing bitmap images. So, I was wondering if someone would be interested in designing a few levels for the game. If you are interested, you would be accredited and would have the option to include your logo and a link to your website in the opening credits of the game.

If you are interested please pm me.


5.

None

Topic: External file hosting

Posted: 12/26/08 10:36 AM

Forum: Flash

At 12/26/08 04:39 AM, GustTheASGuy wrote: Extend the library to load embedded binaries.

how would I go about doing this?


6.

None

Topic: External file hosting

Posted: 12/26/08 12:08 AM

Forum: Flash

Where would you recommend hosting files for a game? I recently started developing a game using papervision and (being completely new to as3) learned that you cannot import .dae files into a .fla. Seeing as I know no other way to load files other than hosting them (I don't even know if it is possible to export them inside the .swf), I would appreciate any help.


7.

None

Topic: Calculate surface angle

Posted: 08/21/08 09:06 AM

Forum: Flash

At 8/21/08 07:20 AM, GustTheASGuy wrote: What, no. You iterate points around the given in a circle to find two on the border of the shape and get their normal.

you test for collisions in a circle, for example every 10 degrees, and take the average angle of the two farthest border points.

//outline
for(var i=0;i<Math.PI*2, i+=Math.PI/10){
if(_root.ground.hitTest(_x+Math.cos(i)*1 0,_y+Math.sin(i)*10)){
//find border points
}
}
//find average angle


8.

None

Topic: accessing variables on the main...

Posted: 07/31/08 08:57 AM

Forum: Flash

So if I wanted to access a variable on the main time line from an instance (thing1) of a class (Thing) how exactly would I set it up?

I am really sorry for taking up your time like this, I just ordered the essential action script 3.0 book, so hopefully I won't need to ask so many stupid questions in the future.


9.

None

Topic: accessing variables on the main...

Posted: 07/31/08 08:11 AM

Forum: Flash

Since 'root' as a class property is simply typed as DisplayObjectContainer all you need to do is type it to your document class.

sorry, I only started using AS3 this month, could you explain who this is done?


10.

None

Topic: accessing variables on the main...

Posted: 07/30/08 06:52 PM

Forum: Flash

anyone have any ideas?

If I could, I would be tempted to convert my classes to extensions of the Sprite class, so that I could access the parent property, but since all of my classes are already extending other classes, I don't think that this is an option.

So if anyone knows how to inherit the properties and methods of two classes simultaneously, that would also be a big help.

The main problem is that I want classes to be able to communicate with one another, but I have no idea how this could be accomplished in AS3 now that root. was so dramatically revamped.


11.

None

Topic: accessing variables on the main...

Posted: 07/30/08 06:15 PM

Forum: Flash

I was wondering how you access a variable on the main time line from within an AS3 class. It seems to be quite different from AS2 where a simple _root.property_name worked fine.


12.

None

Topic: rotating

Posted: 07/23/08 07:09 AM

Forum: Flash

When you first make the movie clip you will see a series of nine boxes arranged in a square beside the name of the movie clip. Click the center one and the registration will be in the very center.


13.

None

Topic: ground has forsacken me : (

Posted: 07/22/08 09:27 PM

Forum: Flash

MovieClips in flash 8 require an onClipEvent Method to function. If you are using flash 8 then Afflict defeniatly has the right idea.

In flash 9, all code must go on the frame and complex instances are not strictly permitted for movieClips (no _root["name"+id]).


14.

None

Topic: how do you make a inventory...

Posted: 07/22/08 09:18 PM

Forum: Flash

I would suggest first learning how to do some more basic things such as making a simple platformer.

Action Script 2.0 is a great help if you have flash 8...
and Action Script 3.0 Main is an OK starting point for flash 9

Once you have mastered the basics, I suggest learning OOP (Object oriented programming) for ease of implementation. The basics of which are covered in the tutorials listed above. I believe that there is even a specific inventory tutorial nestled in there somewhere.


15.

None

Topic: rotating

Posted: 07/22/08 09:14 PM

Forum: Flash

...or you could simply put the object on the stage, double click on it and move in until the registration point is in a different area.

that's how to change it for mc's, I was originally under the impression you wanted to do it through code :P


16.

None

Topic: rotating

Posted: 07/22/08 09:07 PM

Forum: Flash

The first thing that you probably want to do is read up on rotation matrices. Rotation around the z-axis (axis coming out of the screen) is handled by the following logic (courtesy of dELta):

//all coordinates assume a desired registration point of 0,0

x2 = x*cosA - y*sinA;
y2 = x*sinA + y*cosA;

// if the desired registration point is not 0,0 simply change to the following (I think this will work, didn't test it):

x2 = x-xo*cosA - y-yo*sinA+xo;
y2 = x-xo*sinA + y-yo*cosA+yo;
where xo and yo are the desired rotation points.

If you are rotating a movie clip rather then a simple point, the pseudo code above will only rotate the object around a point as if it were a particle (IE no rotation, only displacement). Simply change the MC's rotation property by the "A" value to achieve the correct rotation.

Since I helped you, maybe you'll give me an idea now :P


17.

None

Topic: help with game ideas

Posted: 07/22/08 08:57 PM

Forum: Flash

At 7/22/08 08:16 PM, kylelyk wrote: I don't think anyone is going to be giving out ideas, they don't care enough to help you out.

well then this bbs has really gone to hell since lfash 9 came out.


18.

Resigned

Topic: help with game ideas

Posted: 07/22/08 07:53 PM

Forum: Flash

OK, I know that this has been done before, but the fact of the matter is that I am fresh out of interesting ideas and very, very bored. So bored in fact that I am watching crappy anime reruns as I type.

What I would like is a good idea for a game. A physics based game. I need something to keep me occupied and I think that a new project would be he perfect way to accomplish this. Anyway, if you have any good ideas, or even ones that you think are pretty dull drop them in here.

As to the limitations of the physics involved, there really are none. Rag dolls - check, wheels -check, constraints (angular, rigid, pin) - check, convex polygons -check (plus multiple convex shapes can be added together to make more complex ones). Basically anything that you can think up I could probably implement, so don't be shy about suggesting what might seem to be a rather complicated idea (As long as its in two dimensions, or at least the collisions occur in 2d, IE SSB Brawl).

I would prefer something primarily physics based though.


19.

None

Topic: flash 8: BitmapData question

Posted: 06/30/08 10:17 PM

Forum: Flash

nvm, had to convert it nto a png.


20.

None

Topic: flash 8: BitmapData question

Posted: 06/30/08 09:51 PM

Forum: Flash

help would be really appreciated


21.

None

Topic: flash 8: BitmapData question

Posted: 06/30/08 09:19 PM

Forum: Flash

I know that flash 8 isn't widely in use anymore, but since I don't have the money to upgrade at this time, its what I am stuck with.

Anyway, I am using the bitmapData class to create transparent bitmaps, the problem is that I am loading the bitmaps from a 24 bit bitmap source and I need to include an alpha channel for the application to work properly.
Here is an example of how the bitmap is loaded:

_root.createEmptyMovieClip("EarthHeight"
, 1);
var Height = BitmapData.loadBitmap("earthheight");
var HMap = new HeightMap();
HMap.GreyScale(Height);
EarthHeight.attachBitmap(Height, 2);

Whenever I get or set I pixel I use the getPixel32 and setPixel 32 methods. I assume that since it is not working properly the extra 8 bits of information describing the alpha of the pixel are being discarded. Does anyone know a way to fix this problem, IE convert a 24 bit bitmap into a 32 bit bitmap with alpha channel.


22.

None

Topic: Agh, Finals have started.

Posted: 06/16/08 03:18 PM

Forum: General

Well, where I live (HRM, Nova Scotia, Canada) I don't have to take any exams because of all the forest fires stressing people out. Without the fires I would have exams in Physics 12, Chemistry 12 and Pre Calculus.


23.

None

Topic: My Theory of Time Travel

Posted: 06/09/08 06:54 AM

Forum: General

Time is relative and does not progress linerally for all objects. This is not some pathetic half baked theory, it has been backed up by many different experiments and theories (Your know, like Einstein's theory of relativity). Yes time travel on a macroscopic scale may very well be impossible, but that is because, to our knowledge any wormhole capable of functioning as a time machine would need to be constructed out of exotic mater. This does not mean that worm holes could not exist, but that they would not be able to convey any information.

Your right that time is intangible, but it is measurable. Your entire idea is rooted in the idea that time has to be linear, like a river. Let be ask you this, why does time flow in one direction and one direction only? The answer it entropy. Everything in the universe has the tendency to move from as state of higher potential energy to lower potential energy. One the universe has reached uniform levels of energy, entropy will be complete and time will become meaningless to the point where it might even cease to exist.

For that matter, even while time appear to flow from a state of high energy to low energy, that may not be the case. There is no evidence that time does not branch into possibilities of that it even exists. Until we know all these things will won't know if time travel is possible. Under current theories of the universe, its really not (you could argue some but the fact is that it is impossible to construct an infinitely long spinning cylinder or something of the sort)


24.

None

Topic: lost bookmarks

Posted: 05/20/08 04:00 PM

Forum: General

So I turned on my computer today, thinking that nothing was amiss, but then, when I opened FireFox, I had a nasty surprise. Over half of my bookmarks had vanished. This is the second time this has happened to me. I used to have about 10 different folders under the bookmarks bar, each containing several different links, totaling several hundred links that I will probably never be able to find again. When I turned on my computer, only two of the folders were still there, and thankfully those two folders still contained all of my folders.

Considering that I did not recently make a new profile, and the only thing I did was turn on my computer to discover that the bookmarks were gone, does anyone here know of anyway to get my bookmarks back?


25.

None

Topic: Whats your current GPA?

Posted: 05/09/08 09:50 PM

Forum: General

4.0 or higher. My lowest grade 12 mark is a 98.


26.

None

Topic: cost of Math functions

Posted: 05/08/08 06:34 AM

Forum: Programming

thank you very much


27.

None

Topic: cost of Math functions

Posted: 05/07/08 10:34 PM

Forum: Programming

At 5/7/08 10:26 PM, Disarray-yarrasiD wrote: If someone could tell me the realitive cost of the following math functions it would be greatly appreciated:

+
-
*
/
Math.sqrt()
Math.pow()
Math.abs()

Thank you.

Math.sin cos and tan are would be nice to know too.


28.

None

Topic: cost of Math functions

Posted: 05/07/08 10:26 PM

Forum: Programming

If someone could tell me the realitive cost of the following math functions it would be greatly appreciated:

+
-
*
/
Math.sqrt()
Math.pow()
Math.abs()

Thank you.


29.

None

Topic: physics porblem

Posted: 04/09/08 07:05 PM

Forum: General

Here is a picture to illustrate the problem:

physics porblem


30.

None

Topic: physics porblem

Posted: 04/09/08 06:54 PM

Forum: General

At 4/9/08 06:41 PM, Shawtey wrote:
At 4/9/08 06:36 PM, Disarray-yarrasiD wrote: ok, I am ashamed to admit this, but I have know Idea how to do this physics problem I was given for homework, please help me out.

a 6kg ball moving north at a velocity of 3.0m/s collides head on, making an elastic collision, with an identical ball that is moving south at 2.0m/s. Immediately after the collision, the first ball is moving south at a velocity of 1.0m/s (original velocity 3.0m/s north). What is the magnitude of the velocity of the second ball?
4 meters per second

the first ball has 18 Kg meter / second worth of momentum
the first ball has 12 Kg meter / second worth of momentum

momentum is conserved

so if one ball has 6 Kg meter / second worth of momentum

than the other ball has to have the rest which is 24 Kg meter / second

24 Kg meter / second in a 6 KG ball means that its traviling

4 m/s

so momentum is added according to its magnitude and not sign?

The first ball has 18kgm/s of momentum and the second ball has -12kgm/s of momentum before the collision. After the collision the first ball has -6kgm/s of momentum, so dosent the second ball have to have 12m/s to concerve momentum in the system? Or is it that the direction of the momentum can change as long as the magnitude remains the same?


All times are Eastern Standard Time (GMT -5) | Current Time: 01:41 PM

<< < > >>

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