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

We found 6,031 matches.


<< < > >>

Viewing 1-30 of 6,031 matches. 1 | 2 | 3 | 4 | 5 | 6 | 7104202

1.

None

Topic: liquid flash layot?

Posted: 11/15/09 04:57 AM

Forum: Flash

I don't have a clue what you're trying to do but it's stage.stageHeight not stage.height (same for width)


2.

None

Topic: Send, Store and Receiving data?

Posted: 11/14/09 06:01 AM

Forum: Flash

AS2 or 3?

This covers quite a lot in AS3, or at least leads you into what sort of stuff you should be looking up.


3.

None

Topic: Disabling?

Posted: 10/09/09 08:47 AM

Forum: Flash

At 10/9/09 08:45 AM, UnknownFury wrote: for (var i in _root) {
if (typeof (_root[i]) == "MovieClip")
{
_root[i].useHandCursor = false;
_root[i].tabEnabled = false;
}
}

Urgh. Didn't mean to post. "MovieClip" might have to be "object" as they're buttons.


4.

None

Topic: Disabling?

Posted: 10/09/09 08:45 AM

Forum: Flash

for (var i in _root) {
     if (typeof (_root[i]) == "MovieClip")
     {
          _root[i].useHandCursor = false;
          _root[i].tabEnabled = false;
    }
}

5.

None

Topic: The Flash 'Reg' Lounge

Posted: 10/06/09 03:20 PM

Forum: Flash

At 10/6/09 03:10 PM, trig1 wrote: Derren Brown

What'd everyone think of the hour long program at how to loose £5,000 on a roulette wheel? I just laughed for like 5 minutes straight :D Quite a few conspiracy theories going round, but I don't believe them.

If he was right people would just say it was faked in some way, anyway. It wouldn't be a massive surprise if it was on purpose to make it more believable, although it didn't really have that effect.


6.

None

Topic: document class newbie

Posted: 10/05/09 03:33 PM

Forum: Flash

The reason the addChild didn't work is because your class wasn't a display type, not to mention you're doing it all wrong. If you want a class with code and the image of MovieClip from the library. Right click your MC in the library and click 'Linkage'. Then click export for actionscript and put the class name as Star. Then your code would look something like this.

// Document class
package
{
	import flash.display.MovieClip;

	public class DocClass extends MovieClip
	{

		function DocClass()
		{
			var star : Star = new Star();
			addChild(star);

			addEventListener(Event.ENTER_FRAME, enterframe);
		}

		function enterframe(e : Event) : void
		{
			star.move();
		}
	}
}

// Star.as
package
{
	import flash.display.MovieClip;

	public class Star extends MovieClip
	{

		function Star()
		{
			x = y = 50;
		}

		function move() : void
		{
			x ++;
			y ++;
		}
	}
}

This should, haven't tested, put an instance of your star on the stage at (50, 50) and slowly move it towards the bottom right. Hopefully you can see what I'm doing. Rather than having a class with the code in which then controls a class in your library you do it all in one class.


7.

None

Topic: document class newbie

Posted: 10/05/09 11:17 AM

Forum: Flash

Eh? I sitll don't have a clue what you're on about. You make a seperate class for your stars :/

package
{

import flash.display.MovieClip;

public class Star extends MovieClip
{
    // stuff here

}
}

Something along those lines. Was that even what you were asking?


8.

None

Topic: Depth in game [AS3]

Posted: 10/05/09 10:57 AM

Forum: Flash

Stick the MCs to be sorted in an array and the use some sort of sorting algorithm.


9.

None

Topic: Bring Movieclip to main stage

Posted: 10/05/09 10:53 AM

Forum: Flash

This should work, although I haven't tested it and there might be a better way of handling it:

var inside : MovieClip = outside.inside;
addChild(inside);
inside.x += outside.x;
inside.y += outside.y;

This will essentially grab 'inside' MC from 'outside' MC and insert it onto the stage.


10.

None

Topic: Removing movieclips in AS2 - Help?

Posted: 10/05/09 10:42 AM

Forum: Flash

At 10/5/09 10:39 AM, hdxmike wrote: Also if you dragged them into scene ( if they were there when the movie started ) you cant get rid of them otherwise Coin_3.removeMovieClip(Coin_3) or what you did cant remember

Yes you can. You just have to give it a positive depth (using swapDepths()) before removing if you didn't add the MC via code as it will by default have a negative depth. His function was right. If you do Coin_3.removeMovieclip(Coin_3) then you're looking inside Coin_3 for an mc called Coin_3 which isn't right.


11.

None

Topic: ActionScript to Javascript

Posted: 10/05/09 10:39 AM

Forum: Flash

Javascript
Java
Javascript

Java and Javascript aren't the same thing...


12.

None

Topic: What I dislike about maths

Posted: 10/04/09 06:05 AM

Forum: Programming

At 10/1/09 10:09 PM, elementell wrote: c is speed of light, m is mass, v is volume, d is density, e is energy.

Thats all I've got.

No. Capital V is volume (v is usually (final) velocity), capital E is energy. %u03C1 (rho) is density.


13.

None

Topic: Round to 2 decimal places? AS2

Posted: 10/04/09 04:49 AM

Forum: Flash

Math.round(x * 100) / 100

By multiplying by 100 you're only rounding the digits past the 2nd decimal place. Then by dividing by 100 you're putting the decimal place back in the right position.


14.

None

Topic: AS2 coding in frames related prob

Posted: 10/02/09 04:15 PM

Forum: Flash

At 10/2/09 04:03 PM, Yambanshee wrote:
cant remember if its _currentframe() or _currentFrame()

_currentframe - It's a property; not a function.


15.

None

Topic: Multi-platform platformer

Posted: 10/01/09 03:27 PM

Forum: Flash

At 10/1/09 02:57 PM, Diki wrote: for(i = 0; i < theArray.length; i++)
{
if(!dude.hitTestObject(theArray[i])
{
thing.x += 8;
}
}

That's a horrible way to do it. Use hitTestPoint, or other form of more accurate collision detection than hitTestObject, and put all the platforms in one MC.


16.

None

Topic: Getting a console ver of my flash?

Posted: 10/01/09 02:11 PM

Forum: Flash

At 10/1/09 12:21 PM, Hi5er wrote: Actually my version of maths is a subcourse called D1 or decision which involves algorithms and functions and stuff like that... any good? :l

That's just 1 module of the A-level. For the whole A-level you'll be doing 6 modules (including the 4 core modules). D1 is of relevance as it's about following algorithms which is somewhat important as you'll come across a lot of them. One of the most important thing though if you want to learn C++ is the ability to teach yourself. Read articles on the internet and just pick stuff up like that as well as sit down with a problem and work out how to tackle the problem.


17.

None

Topic: Actionscript help

Posted: 10/01/09 02:01 PM

Forum: Flash

Firstly, get rid of all the rounding; it serves no purpose. Secondly, restrict the _rotation by something like:

if(_rotation > max) _rotation = max;

18.

None

Topic: what do the pro's use?

Posted: 09/30/09 03:33 PM

Forum: Flash

30 Day Trial.

"New to flash? Read this first!"


19.

Winking

Topic: Need a musician for a game!

Posted: 09/30/09 06:34 AM

Forum: Flash

5. If you look around the audio portal for stuff you like you can try sending a PM to the author. Remember to include 2-4 in your PM.


20.

None

Topic: AS: Jump and land perfectly

Posted: 09/30/09 04:50 AM

Forum: Flash

At 9/30/09 02:54 AM, Yambanshee wrote: I did say that i shouldn't have included the thing about gravity due to it being more opinion, but you can take it or leave it, its a god damn tutorial on another method of doing things, not nessacery the right method, but the method i prefer and wanted to share with the rest.

"Although this works, it is unlike real gravity's acceleration (9m/s^2)"

You were telling people the first code isn't like gravity, when it is, hence suggesting that your method was right/more realistic.


21.

None

Topic: AS: Jump and land perfectly

Posted: 09/29/09 04:31 PM

Forum: Flash

At 9/29/09 11:37 AM, Yambanshee wrote: Although this works, it is unlike real gravity's acceleration (9m/s^2)
Its not that complicated, simply put, you need a second gravity variable.

grav ++
yvel += grav
char._y += yvel

Firstly, gravity on earth is 9.81 so closer to 10 than 9. Secondly, what hell is that code about? Gravity should be constant. You're increasing the acceleration when acceleration due to gravity should be constant.

g = 1.5;
// ...
vy += grav;
char.y += vy;

And your use of a for loop is silly, what's wrong with a while loop?


22.

None

Topic: File name arrays?

Posted: 09/28/09 01:33 PM

Forum: Flash

Why would you want to actually rename the files? What's wrong with leaving the filenames as they are and loading them in?


23.

None

Topic: Newgrounds and AS3 classes

Posted: 09/28/09 03:50 AM

Forum: Flash

You don't need them to run the swf as it all gets compiled.


24.

None

Topic: Building a web browser. Interested?

Posted: 09/27/09 02:08 PM

Forum: Programming

I smell epic fail. I'm betting this is complete bullshit seeing as you didn't even know what a rendering engine was. Explain to us how you're going to go about coding your virus scanner, if you're serious?


25.

None

Topic: _X and _Y with embedded objects

Posted: 09/27/09 01:59 PM

Forum: Flash

You've been given the solution. Either:

this._x=_root.gun._x + _root.gun.arm._x;
this._y=_root.gun._y + _root.gun.arm._y;

By adding the position of the MCs parent you're getting its position relative to the stage. The other option is to use the localToGlobal function.


26.

None

Topic: what is code for pause?

Posted: 09/27/09 01:40 PM

Forum: Flash

There is no 'pause code'. Use a boolean variable.

var pause : Boolean = false;

function enterframe(e : Event)
{
    if(!pause)
    {
        // Code
    }
}

And add a keylistener or whatever to get whether the pause key is pressed, and set the pause variable accordingly.


27.

None

Topic: 0xrrggbb To Red, Blue, Green

Posted: 09/27/09 10:05 AM

Forum: Flash

var colour : Number = 0xFF0000;
var r = colour >> 16 & 0xFF;
var g = colour >> 8 & 0xFF;
var b = colour & 0xFF;

>> is the bitwise right shift operator and & is the bitwise and operator.


28.

None

Topic: set coordinates outside stge random

Posted: 09/27/09 03:37 AM

Forum: Flash

There's probably a better way than this, but this is certainly better than your do.. while loop:

Math.random()*-50 + (stage.stageWidth+50)*Math.round(Math.random())

29.

None

Topic: Female Voice Actor Needed For Flash

Posted: 09/27/09 02:52 AM

Forum: Flash

Check out the Voice Actor Wanted thread over in the audio forum.


30.

None

Topic: Platform Game HitTesting

Posted: 09/27/09 02:50 AM

Forum: Flash

Put all of the platforms in one movieclip and then use a shapeflag hittest against that:

if(ground.hitTest(_x, _y, true))

All times are Eastern Standard Time (GMT -5) | Current Time: 12:29 PM

<< < > >>

Viewing 1-30 of 6,031 matches. 1 | 2 | 3 | 4 | 5 | 6 | 7104202