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

We found 14,804 matches.


<< < > >>

Viewing 181-210 of 14,804 matches. 135 | 6 | 7 | 8 | 9251494

181.

None

Topic: attachMovie() problem

Posted: 03/09/09 06:22 AM

Forum: Flash

Either

on (press) {
	i++;
	this.attachMovie("Squirrel", "Squirrel"+i, _root.getNextHighestDepth(), {_x:300,_y:300});
}

or

on (press) {
	i++;
	nmc=this.attachMovie("Squirrel", "Squirrel"+i, _root.getNextHighestDepth());
	nmc._x=300;nmc._y=300;
}

182.

None

Topic: Help with HitTest

Posted: 03/08/09 02:21 PM

Forum: Flash

At 3/8/09 02:06 PM, amartainment wrote: Hey NG userz,
I needed some help for hitTest. Its not very accurate, in my game too, it shows mission failed sometimes when therez no 'actual' contact. Is there any replacement? or any way to solve it? Please help me.
~Amar

You could go for having an internal, invisible Movieclip inside which you use for the hitTest.
Or, you could use shapeflag hitTesting - see
AS: Collision Detection by BleeBlap
AS: Collisions - HitTesting Duped MCs by SpamBurger
AS: Collisions - Move To Contact by Tela_Ferrum
Or, you could scrap hitTesting and go for trigonometry


183.

None

Topic: Changing contentPath with button?

Posted: 03/05/09 03:44 AM

Forum: Flash

At 3/5/09 03:32 AM, Denvish wrote: here's some relevant code:

There's some irrelevant code in there too, eg stopd and b_pause, the Instance Name of the MC on stage was VP (set to Class: mx.video.VideoPlayer in the library). The Video component itself is set to Video (Actionscript-controlled) in the library properties, and placed inside the VP MC.

Hope that sort of makes sense - if not, try this (set to import from a flv filename variable appended to the swf eg VPlayer.swf?flvName=Video01 - should be adapted easily enough)


184.

None

Topic: Changing contentPath with button?

Posted: 03/05/09 03:32 AM

Forum: Flash

At 3/4/09 11:49 PM, 16Bits wrote: I want to change what video gets loaded into the player based
on which button is selected.

I built a YouTube-style video player a while back, I can't remember exactly how it all works, but here's some relevant code:

import mx.video.NCManager;
import mx.video.VideoPlayer;
var _dummy:NCManager;
var VP:VideoPlayer;
flvName="Video01";

b_play.onPress=function(){
	if(VP.playheadTime==VP.totalTime){
		VP.playheadTime=0;
	}
	VP.bufferTime=1;VP.width=400;VP.height=320;VP.autoRewind=false;
	VP.addEventListener("progress",LoadProg);
	VP.addEventListener("complete",EndIt);
	VP.play(_root.flvName+".flv");
}

function LoadProg(eventObj:Object):Void{
	PC=VP.bytesLoaded/VP.bytesTotal*100;
	loadBar._xscale=PC;
}
function EndIt(eventObj:Object):Void{
	pausd=1;b_pause._visible=0;b_play._visible=1;
}

onEnterFrame=function(){
	if(!pausd){
		playBar._xscale=(VP.playheadTime*1000)/(VP.totalTime*1000)*100;
		if(stopd){stopd=0;VP.play();}
	}else{
		VP.pause();
		stopd=1;
	}
}

I guess to choose different videos you should just be able to create an array of the flv filenames/paths (in quotes) and pull an item out of that array for the flvName variable.


185.

None

Topic: Custom Cursor Crap

Posted: 03/04/09 05:04 AM

Forum: Flash

At 3/4/09 02:44 AM, DaSexCPikle wrote: I made my own cursor which exist on scene 2, the MC named 'cursor'
in cursor;

onClipEvent(enterFrame){
this.swapDepths(99998)
Mouse.hide()
startDrag(this,true)
}

The 2nd cursor that appears follows the mouse but the aiming MC doesn't respond to it.

Well for starters that code should be running onClipEvent(load), not enterFrame.

Secondly, if you're skipping straight from Scene 1 to Scene 3, the cursor from Scene 2 shouldn't even be getting created, double-check to make sure you're avoiding playing even one frame of Scene 2.

Thirdly, if all else fails, give the cursors different Instance Names and use _root.instancename.removeMovieClip(); to delete previous cursors from within the onClipEvent(load) function


186.

None

Topic: Competition Time: Drawing In As

Posted: 02/25/09 02:28 PM

Forum: Flash

At 2/25/09 02:11 PM, Deadclever23 wrote: Come on peoplez you know you wanna try.

I'm going out right now but I'll definitely be up for this later.


187.

None

Topic: My Cartoon Self

Posted: 02/25/09 01:02 PM

Forum: Flash


188.

None

Topic: Scene problems.

Posted: 02/25/09 11:21 AM

Forum: Flash

At 2/25/09 11:17 AM, MrSaint wrote: Thank God before this I copied the .fla into another folder. Do you suggest that I Make Scenes in diffrent .fla's and in the end connect all of them together?

No good asking me, I never work with Scenes because they tend to cause problems with AS, particularly audio. I guess that should work, though.


189.

None

Topic: Scene problems.

Posted: 02/25/09 11:15 AM

Forum: Flash

At 2/25/09 11:10 AM, MrSaint wrote: I saw only red blocks, no sprites that I animated!

Doesn't sound too hopeful. Do you get 'corrupted file' messages when you open the fla?
Don't know what to say except get into the habit of saving the fla every 20-30 minutes under a new filename, so you can go back to a previous version if things get screwed up or the program crashes.


190.

None

Topic: Need Help with a Logo

Posted: 02/25/09 10:53 AM

Forum: Flash

At 2/25/09 06:45 AM, Kirk-Cocaine wrote:
At 2/25/09 06:21 AM, Denvish wrote:
At 2/25/09 06:10 AM, Kirk-Cocaine wrote:
At 2/25/09 05:50 AM, Denvish wrote:
At 2/25/09 01:04 AM, Magical-Zorse wrote: Here, I made you one
Tweaked with rainbow gradients, bevels, and other unnecessary filters for extra COOL
Added extra cool background.
Can't beat a bit of unprovoked lens flare for COOL+5
Say what, say what?

I've spent all day thinking about it, and I don't think there's any way I can really improve on that.
Unless.......... hm...

Need Help with a Logo


191.

None

Topic: Please help me!

Posted: 02/25/09 10:35 AM

Forum: Flash

At 2/25/09 08:23 AM, ronn86 wrote: var touchingGround: Boolean false;

Only error I get is on that line, which should be

var touchingGround: Boolean = false;


192.

None

Topic: Money system help.

Posted: 02/25/09 10:26 AM

Forum: Flash

At 2/25/09 10:15 AM, drip wrote: I was wondering if I would have to make a new variable that stores the old amount of money you made and have the new money you make from future hauls add to it? And if so how?

If you can program that other stuff I'm surprised you're having trouble with this. Simply have two variables, totalCash and tripCash, which both start at 0. When out fishing, add to tripCash. Back at port, add tripCash to totalCash and reset tripCash to zero


193.

None

Topic: Stop animation

Posted: 02/25/09 07:22 AM

Forum: Flash

At 2/25/09 07:04 AM, spitfire19er wrote:
At 2/24/09 08:21 PM, Ashed-Dreams wrote: Contact tom and tell him about your movie. Don't rape the quality.
I'm somewhat new to NG, so how do I contact this Tom fellow?

tom@newgrounds.com
Basically as admin/owner of NG he can submit larger files on behalf of authors, at his discretion.

However, I have to say that 33Mb for 20 seconds of animation is excessive, even for stop-motion.
Consider either resizing images externally before import, or lowering the export quality using the sliders in File>Publish Settings


194.

None

Topic: Need Help with a Logo

Posted: 02/25/09 06:21 AM

Forum: Flash

At 2/25/09 06:10 AM, Kirk-Cocaine wrote:
At 2/25/09 05:50 AM, Denvish wrote:
At 2/25/09 01:04 AM, Magical-Zorse wrote: Here, I made you one
Tweaked with rainbow gradients, bevels, and other unnecessary filters for extra COOL
Added extra cool background.

Can't beat a bit of unprovoked lens flare for COOL+5

Need Help with a Logo


195.

Elated

Topic: Need Help with a Logo

Posted: 02/25/09 05:50 AM

Forum: Flash

At 2/25/09 01:04 AM, Magical-Zorse wrote: Here, I made you one

Tweaked with rainbow gradients, bevels, and other unnecessary filters for extra COOL

Need Help with a Logo


196.

None

Topic: how do i get more FPS for my game?

Posted: 02/25/09 05:27 AM

Forum: Flash

I suspect that the lag is as much to do with the code that's running, as the filters. The number of moving sprites with some kind of AI (move/attack), plus the variable terrain detection, it's all going to add up to a fair whack of processing power, especially with the individually animated body parts on top of that. The fact that you hit an infinite loop if you die by falling off the left hand end suggests that all is not as it should be in terms of the code. Check it through for unnecessary loops and if possible only run functions when they're needed.


198.

None

Topic: Changing flash frame rates

Posted: 02/25/09 05:08 AM

Forum: Flash

It's certainly possible to drop the framerate, but if it's only running at 12 FPS you aren't ever going to get a satisfactory simulation of 24 FPS. Even if you use an interval or getTimer() to force more frequent frame changes, they'll still only be processed and rendered at 12 FPS, so you'll end up with jerky movement.

Much better to start off at with the project framespeed at 30FPS, use AS to drop it to 12 FPS at run time and then again to jack it up to 24 when required


199.

Questioning

Topic: Quick Actionscript Help

Posted: 02/25/09 05:02 AM

Forum: Flash

Right, decompiled it, it's a mess.

Main reason you're having problems is that schlub is a button, not a movieclip. Change it to an MC both in the library and on the stage, and add a stop();action to the first frame of it.

Secondly, give the 'VIEW IT' button the Instance Name 'butt' and add these actions:

on (rollOver){
    butt._alpha = 0;
    _root.shlub.gotoAndStop(2);
}
on (rollOut, dragOut,releaseOutside){
	butt._alpha = 100;
   _root.shlub.gotoAndStop(1);
}

Working


200.

None

Topic: heres a quick one.

Posted: 02/24/09 07:47 PM

Forum: Flash

Still not sure exactly what you're asking, but try this. It's your current code compressed and with a pdist variable thown into the onClipEvent(load) - change pdist for the distance you want the enemy to stay above by

onClipEvent (load) {
	var egrav:Number = 0;
	var scale:Number = this._xscale;
	var pdist:Number = 40;
}
onClipEvent (enterFrame) {
	_rotation += 5;
	if (_root.player._x>_x) {_x += 2;}
	if (_root.player._x<_x) {_x -= 2;}
	if (_root.player._y>_y+pdist) {_y += 2;}
	if (_root.player._y<_y) {_y -= 2;}
	if(_y>_root.player._y-pdist){_y=_root.player._y-pdist;}
}

201.

None

Topic: heres a quick one.

Posted: 02/24/09 07:32 PM

Forum: Flash

At 2/24/09 07:17 PM, baboop wrote: but stay on top of him the whole time?

Not sure what you mean by that


202.

None

Topic: ActionScripted Barriers?

Posted: 02/24/09 07:12 PM

Forum: Flash

At 2/24/09 06:35 PM, TheGoldenMonk wrote: The code ends up with syntax errors, and I can't figure out where.

Would help if you posted the code you're currently using, and the syntax errors


203.

None

Topic: ActionScripted Barriers?

Posted: 02/24/09 05:53 PM

Forum: Flash

At 2/24/09 04:59 PM, TheGoldenMonk wrote: What exactly is vX and vY, because flash isn't recognizing it at all. Is it a variable I have to set up? or a special one, like "i" ?

Generally vX/vY or xvel/yvel are used for horizontal (_x axis) and vertical (_y axis) velocity. In your case, vX is the walking speed and vY is the jumping/falling speed


204.

Happy

Topic: Happy Birthday UnknownFury!

Posted: 02/24/09 03:31 PM

Forum: Flash

Many happy returns


205.

None

Topic: function question

Posted: 02/24/09 01:34 PM

Forum: Flash

Basically if the function is on the main timeline, you need to call _root.tracks()

The parameter you're sending/recieving (mc) doesn't actually appear to be necessary, as it's not referenced in the function (unless as _root.mc, which would probably need to be _root[mc] instead

Hopefully that makes some kind of sense


206.

None

Topic: Transparent Background

Posted: 02/24/09 11:52 AM

Forum: Flash

Dunno whether Powerpoint uses or is similar to HTML at all, but you can embed a swf in an HTML page and add the parameter "wmode", value "transparent" to the swf object/embed tags, ie

<param name="wmode" value="transparent" />

207.

Elated

Topic: Resizing an200 image

Posted: 02/24/09 11:35 AM

Forum: Flash

At 2/24/09 11:27 AM, Alwaysmental wrote: Thanks, it worked but its all squished im just going to give up and make my own sig with my imaginaton :D

Yeah well 200x400 is never going to resize well to 599x50, try starting with a wide short image instead, or resizing the image to 599 wide with lock aspect ration on, and then cropping out a section of it 599x50.

I find the max 50 height pretty constricting personally. Talking of which, probably time I changed my sig


208.

None

Topic: Site-lock help

Posted: 02/24/09 11:31 AM

Forum: Flash

onEnterFrame = function () {
	textbox2.text = domain;
	urlStart = _url.indexOf("://") + 3;
	urlEnd = _url.indexOf("/", urlStart);
	domain = _url.substring(urlStart, urlEnd);
	if(domain.indexOf("www.")>-1){
		domain=domain.substr(4);
	}
	if (domain != "guil07.freehostia.com") {
		textbox.text = "BAD";
	} else {
		textbox.text = "GOOD";
	}
};

209.

None

Topic: Resizing an200 image

Posted: 02/24/09 11:23 AM

Forum: Flash

At 2/24/09 10:30 AM, Alwaysmental wrote: Sorry for the 200 in the title didn't notice it, it has nothing to do with my problem.
p.s sorry for the double post

Not used Paint.NET, but make sure the 'Lock Aspect Ratio' (or similar) is turned off in the resize options


210.

None

Topic: ActionScripted Barriers?

Posted: 02/24/09 05:04 AM

Forum: Flash

At 2/23/09 12:16 AM, Johnny wrote: Has to be:
this._x += this.vX;

Doh, can't believe I didn't notice that.

At 2/24/09 12:37 AM, TheGoldenMonk wrote: The Barrier works, but now I have a new problem. When you hit the barrier with the character, it bounces into the block slightly, and you can get stuck inside of it.

Make sure your character is centred in the MC (or create a smaller internal MC to run the hitTest on).
Also, add another player._x+=player.vX; player._y+=player.vY; directly after the vX/vY reversal on detecting hitTest as true, ie:

player.onEnterFrame=function{
	this._x += this.vX;
	this._y += this.vY;
	if ( this.hitTest(_root.barrier ) ){
		this.vX*=-1;
		this.vY*=-1;
	       this._x += this.vX;
	       this._y += this.vY;
	}
}

All times are Eastern Standard Time (GMT -5) | Current Time: 03:07 PM

<< < > >>

Viewing 181-210 of 14,804 matches. 135 | 6 | 7 | 8 | 9251494