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

We found 529 matches.


<< < > >>

Viewing 1-30 of 529 matches. 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 91318

1.

Expressionless

Topic: Buildings over/under player

Posted: 10/10/09 09:08 PM

Forum: Flash

I'm making an RPG, and all the artwork is isometric, so i'm wondering how I can make a building go over the player when their behind it and under them when they're infront, so far I can only do it with one corner, if the building has 3 corners exposed it doesn't work, help please.

onClipEvent(load){
this.gotoAndStop(2);
}
onClipEvent(enterFrame){

if (_root.player._y <= 101.7){
		this.gotoAndStop(1);
}
else this.gotoAndStop(2);
}

2.

None

Topic: Frustrating problem

Posted: 09/13/09 08:22 PM

Forum: Flash

var noise:number = 50;
onEnterFrame = function(){
noise -= 0.25;
if(noise<=1){
noise=1;
}

as i said MUCH simpler but of course frame based not time based
same general effect though
but if it needs to be time based then im stumped

Thanks, works like a charm.


3.

Misunderstood

Topic: Frustrating problem

Posted: 09/13/09 07:48 PM

Forum: Flash

noise  = 50;
function onEnterFrame(){
setInterval(Clock, m);
	function Clock():Void {
	noise -= 5;
	clearInterval(Clock, m);
	}
		if (noise <= 0){
		noise = 1;
	}}
	m = 1000;

All I want is a bar that constantly goes down by a value of 5 or something, and when you the player touches stuff it puts 50 or so up there, if the value gets past 100 he'll fail the game.

What it does is as soon as it starts, just goes straight to 0, and won't go up a number anymore, can someone help?


4.

Expressionless

Topic: For the last time... VCam...

Posted: 06/21/09 04:50 PM

Forum: Flash

The code to make it follow the player is very simple, not sure if you should be starting a game just yet if you can't figure it out.


5.

Happy

Topic: Enemies that shoot

Posted: 05/24/09 01:59 PM

Forum: Flash

At 5/24/09 01:55 PM, Deathcon7 wrote: What doesn't work? What error are your receiving? Also, what is it supposed to do, and what is it doing instead?

It just doesn't work, I have no error it won't spawn the bullet from the enemy.


6.

Resigned

Topic: Enemies that shoot

Posted: 05/24/09 01:14 PM

Forum: Flash

var timer:Number = setInterval(mcLoop);
var cap:Number = d;
var numberOfMovieclips:Number = 0;
function mcLoop():Void {
	note = _root.attachMovie("akbullet", "akbullet"+numberOfMovieclips++, _root.getNextHighestDepth());
	note._y = _root.enemy._y;
	note._x = _root.enemy._x;
	note.dead = false;
	note.onEnterFrame = goLeft;
}
	function goLeft():Void {
		if (this.hitTest(_root.player)) {
		this.gotoAndStop(2);
		this.dead = true;
}
	if (!this.dead) {
		this._x -= 10;
	}
	if (this._y>Stage.height+this._height/2) {
		removeMovieClip(this);
	}
}

That is triggered by setInterval(mcLoop, a); when the player is within range, it doesn't work though, any suggestions?


7.

None

Topic: Birds Eye Driving game.

Posted: 05/21/09 10:07 PM

Forum: Flash

Hey guys I need code for a game HELP D: D:


8.

Sleeping

Topic: NG Ads not counting any hits

Posted: 05/21/09 09:33 PM

Forum: Flash

At 5/21/09 09:26 PM, billowillo wrote: give it time, if it gets some it should update within 24 hours if im not mistaken.

Well that's what I figured so I didn't worry about it yesterday when I posted it, now i'm a little worried. I'll wait another day.


9.

Expressionless

Topic: NG Ads not counting any hits

Posted: 05/21/09 09:23 PM

Forum: Flash

bump, is the API messed up because of the update or what? should I be PMing someone?


10.

Angry

Topic: NG Ads not counting any hits

Posted: 05/21/09 03:06 PM

Forum: Flash

I posted a game yesterday with it approved for ads and the ads worked, but in my ads it isn't showing any statistics like how many views the ads have, it's just blank with a "--" all the way through. So did I just waste a game or what?


11.

Expressionless

Topic: Ng Api Ads Aren't Showing

Posted: 05/20/09 07:14 PM

Forum: Flash

Well I just checked and it said my movie has been approved, yet the ads still aren't showing up. What the fuck?


12.

Crying

Topic: Ng Api Ads Aren't Showing

Posted: 05/20/09 05:59 PM

Forum: Flash

Well I added the ad to the front of my flash, it connected with the server fine but when it loads it just shows the NG logo and doesn't change to the ads. Does it have to be approved first? I wasn't asked for a link to a demo or anything.


13.

Elated

Topic: Button to be pressed multiple times

Posted: 05/15/09 12:29 AM

Forum: Flash

Just wondering how you would make it so for a minigame lets say you have to hit the space bar when it tells you to, if you just use the key.isdown for space you can just hold it down the whole time.

So yeah, help and junk.


14.

Expressionless

Topic: Why doesn't this work?

Posted: 05/09/09 01:59 PM

Forum: Flash

Still need this.


15.

None

Topic: Why doesn't this work?

Posted: 05/09/09 01:17 AM

Forum: Flash

At 5/9/09 12:08 AM, david81792 wrote: haha is this a game where you blaze it or something?

it's an adventure game that involves that, yes.


16.

None

Topic: Why doesn't this work?

Posted: 05/08/09 11:13 PM

Forum: Flash

bump, solution is needed.


17.

None

Topic: Why doesn't this work?

Posted: 05/07/09 11:50 PM

Forum: Flash

At 5/7/09 11:25 PM, Johnny wrote: Where are you setting it to true?

Just above, I didn't include any of the variables but they're all there and correct.


18.

Happy

Topic: Why doesn't this work?

Posted: 05/07/09 11:10 PM

Forum: Flash

I changed weed to poop to disguise that purpose of the code but whatever, does anyone know why it isn't working?


19.

Sad

Topic: Why doesn't this work?

Posted: 05/07/09 09:48 PM

Forum: Flash

onEnterFrame = function(){
	if (poop==true){
var timer:Number = setInterval(toke, a);
function toke():Void {
	puff = _root.attachMovie("puff", "puff", _root.getNextHighestDepth());
	tokemeter -= 2;
	puff._y = player.mouth._x
	puff._x = player.mouth._y
	puff.onEnterFrame = goLeft;}}}

I see no reason why it shouldn't, i'd like to turn it on and off but as soon as I put that condition in it doesn't work. I'm guessing it's my enterframe function.


20.

None

Topic: Code not working

Posted: 04/02/09 11:18 PM

Forum: Flash

rebump


21.

Expressionless

Topic: Code not working

Posted: 04/02/09 08:16 PM

Forum: Flash

bump


22.

Expressionless

Topic: Code not working

Posted: 04/02/09 05:25 PM

Forum: Flash

At 4/2/09 05:17 PM, B-Mantis wrote: your floored distance does not make sense, x*x will always result in a positive number, so so will Math.sqrt(x) (for a positive x)

your problem is this:

You keep starting to play the movieclip at frame 3. You need something like:

//pseudo code

if (CURRENTFRAME IS NOT 3)
gotoAndPlay(3);
onEnterFrame = function()
{
	c = _root.player;
	s = _root.ped1;
	deltaX = c._x-s._x;
	deltaY = c._y-s._y;
	// rounded distance
	dist = Math.sqrt((deltaX*deltaX)+(deltaY*deltaY));
	// distance
	dist2 = Math.floor(Math.sqrt((deltaX*deltaX)+(deltaY*deltaY)));
	//check if within distance
	if (dist2 <= range &&!_root.ped1.torso == 3)
	{	
trace("work")
_root.ped1.torso.gotoAndPlay(3);
punch2 = false;
	}
	
}

Still doesn't work, not sure if this is what you meant.


23.

Angry

Topic: Code not working

Posted: 04/02/09 05:05 PM

Forum: Flash

onEnterFrame = function()
{
	c = _root.player;
	s = _root.ped1;
	deltaX = c._x-s._x;
	deltaY = c._y-s._y;
	// rounded distance
	dist = Math.sqrt((deltaX*deltaX)+(deltaY*deltaY));
	// distance
	dist2 = Math.floor(Math.sqrt((deltaX*deltaX)+(deltaY*deltaY)));
	//check if within distance
	if (dist2 <= range)
	{	
trace("work")
_root.ped1.torso.gotoAndPlay(3);
punch2 = false;
	}

}

It just won't go to frame 3 to play the attack animation, no Idea why it won't the trace works.


24.

Expressionless

Topic: How to tell distance between MCs

Posted: 03/30/09 12:24 PM

Forum: Flash

At 3/29/09 09:06 PM, Nano256 wrote: Well, he gave you distance squared, not distance, so what should you do to break that down to the actual distance?

what


25.

None

Topic: How to tell distance between MCs

Posted: 03/29/09 08:55 PM

Forum: Flash

At 3/29/09 07:28 PM, Paranoia wrote: All the theory is the same in both; it's just not got the event listeners and shizzle.

distanceSquared = xDistance * xDistance + yDistance * yDistance;

this is my code, which isn't working

function Ticker():Void {
xDistance = ped1._x - player._x
yDistance = ped1._y - player._y
   distanceSquared = xDistance * xDistance + yDistance * yDistance;
   if (distanceSquared<10)
   {
     trace ("Working");
   }
}

26.

None

Topic: How to tell distance between MCs

Posted: 03/29/09 07:02 PM

Forum: Flash

Can I get that in AS2?


27.

None

Topic: How to tell distance between MCs

Posted: 03/29/09 06:43 PM

Forum: Flash

At 3/28/09 03:27 AM, kiwi-kiwi wrote: addEventListener(Event.ENTER_FRAME, Ticker);

What's the enter_frame buisness?


28.

None

Topic: How to tell distance between MCs

Posted: 03/28/09 01:04 AM

Forum: Flash

At 3/28/09 12:38 AM, zuperxtreme wrote: Pythagorean theorem.

a^2 + b^2 = c^2

c would be your distance. Do something like:

var xDiff:Number = enemy.x - player.x
var yDiff:Number = enemy.y - player.y
var Distance:Number = Math.round(Math.sqrt((xDiff*xDiff)+(yDif f*yDiff)))

Voila.

Could you comment it out? maybe explain how to use it with an enterframe.


29.

Shouting

Topic: How to tell distance between MCs

Posted: 03/28/09 12:26 AM

Forum: Flash

Not sure how to do this, and It's vital to know for enemy AI attacking, like if he's 5 pixels away he'll go and play his attack animation and do damage. Thanks in advance.


30.

None

Topic: Smoother AI movement

Posted: 03/19/09 04:47 PM

Forum: Flash

Can someone put the distance formula into a onClipEvent (enterFrame){ if (blubblub){}???


All times are Eastern Standard Time (GMT -5) | Current Time: 01:39 AM

<< < > >>

Viewing 1-30 of 529 matches. 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 91318