Be a Supporter!
Response to: patient programmer need Posted May 30th, 2009 in Game Development

At 5/30/09 11:20 AM, Darkswift2204 wrote: i cant show anything right now sry

Then post again only if you have.

Response to: flash API problem Posted May 30th, 2009 in Game Development

At 5/30/09 01:13 PM, micky315 wrote:
At 5/30/09 01:11 PM, WhoknowsmeaUdiO wrote: Just download it, I guess?
i use as2

Then download the AS2 version *rolls eyes*.

Response to: flash API problem Posted May 30th, 2009 in Game Development

Just download it, I guess?

flash API problem

Response to: The Flash 'Reg' Lounge Posted May 30th, 2009 in Game Development

At 5/30/09 12:54 PM, Toast wrote: Why do so many people buy macs?

For less than 2000 dollars you can buy something.

Asus! :D

Response to: I Need Your Crap! Posted May 30th, 2009 in Game Development

Teehee! I quickly made this. Lol I just put that as my phone's background. Anyways, link.

Response to: To encrypt or not to encrypt? Posted May 30th, 2009 in Game Development

If your game/movie's good, it's worth the time to encrypt it. A few links:
http://www.amayeta.com/software/swfencry pt/trial/
http://www.kindisoft.com/?gclid=CKLY2t26 5JoCFcE63godhCa8BA

You can download the free trial for both of them.

Response to: The Flash 'Reg' Lounge Posted May 30th, 2009 in Game Development

At 5/30/09 10:32 AM, Zyphonee wrote: UP! looks great, I can't wait to watch it as soon as it's out, June 11th.

I HATE LIVING IN ARGENTINA!

Here's a pic to cheer you up :3

The Flash 'Reg' Lounge

Response to: Game Fighting Posted May 30th, 2009 in Game Development

At 5/30/09 09:21 AM, A-star wrote: if(Key.isDown(65) && _root.enemy.hitTest(_x,_y,true)){
unloadMovie(enemy)
}

Well that code wasn't that good. It means as soon as I hit the enemy and press A, the enemy disappears. That way I could hold down A and touch every enemy around me.
To Original Poster:
If you don't know about them yet, look into variables.
The keyboard keys, SPACE, LEFT, RIGHT etc. not included, are adressed using keycodes.
Using if statements, you can combine the two. Look at this example code:

onClipEvent (load) {
	var enemy_health:Number = 100;
	var punched:Boolean = false;
}
onClipEvent (enterFrame) {
	if (Key.isDown(65) && !punched) {
		punch();
		punched = true;
	}
	if (!Key.isDown(65)) {
		punched = false;
	}
	if (enemy_health<=0) {
		_root.enemy.unloadMovie();
	}
	function punch() {
		this.gotoAndStop("punch");
		if (_root.enemy.hitTest(this.fist)) {
			enemy_health -= 10;
		}
	}
}

Sorry that I don't explain the code or it's not completely right and that this is a rough version, but I'm a bit tired.
For further help, look at the bottom of the page here.

Semicolons ;)
Response to: multiActions Character Posted May 30th, 2009 in Game Development

Flash uses keycodes. A = 65, B = 66.
For example:

if(Key.isDown(65)){
trace("a is pressed");
}

Linky for complete ASCII(Flash keycodes) table.

Response to: I need an artist for my game Posted May 30th, 2009 in Game Development

You should REALLY fix those bugs soon. What code are you using?

Just interested.

I need an artist for my game

Response to: Coding through Timeline Posted May 30th, 2009 in Game Development

At 5/30/09 09:17 AM, A-star wrote: _root.bullet.onEnterFrame = function(){
gotoAndStop(angle)
}
this.gotoAndStop(this.angle)
Response to: multiActions Character Posted May 30th, 2009 in Game Development

As Neo said, we need your code to help you. I'll try and help you anyways.
Asuming you have a code like

if (Key.isDown(Key.RIGHT)) {
	_x += speed;
	//eventual "this" below
	gotoAndStop("walk");
}

So what you want to do is check if the key is NOT pressed. We're gonna use an exclamation mark, which Flash uses as logical not. So we're putting in this code:

if (!Key.isDown(Key.RIGHT)) {
	gotoAndStop("idle");
}

This means:
if the right arrow key is NOT down, go to the frame called idle.
You could also use an "else":

if (Key.isDown(Key.RIGHT)) {
	_x += speed;
	//eventual "this" below
	gotoAndStop("walk");
} else {
	gotoAndStop("idle");
}

Altough I would recommend using the exclamation mark as logical not.
NOTE: This is AS2, not AS3.
This good? If not, post your relevant code here.

And yes, Neo. Semicolons.
Response to: How do you add medals to a game? Posted May 30th, 2009 in Game Development

At 5/30/09 09:32 AM, LorenzGames wrote: so basically after the game has been published on Newgrounds, you get a message from tom asking you to add medals?

That's one possibility, but PM or email Tom with a link to your game and ask him to give you some medals ;)

If your game's good, he'll let you use them. Also, I think you can PM/email other staff members as well, not sure.

Response to: NG Alpha Posted May 29th, 2009 in Game Development

I think it's been off for more than a year now. It may be because of bandwidth and stuff. NG Alpha + Po3 wouldn't work out that well, I think.

Response to: Go to another frame after 2 sec Posted May 29th, 2009 in Game Development

At 5/29/09 02:13 PM, knugen wrote: I would like to edit that code a little ;)

See what you did there. ;)

Response to: Go to another frame after 2 sec Posted May 29th, 2009 in Game Development

I'm not that good at intervals, so put this on every frame you want to do that:

onEnterFrame = function(){
counter ++
if(counter >= (2*framerate)){
nextFrame();
}
}
onLoad = function(){
var counter:Number = 0;
var framerate:Number = 30;
}

NOTE! Replace the 30 at "var framerate:Number = 30;" with your framerate. Such as 12, 21,24,60.

Response to: Any improvements for gun shot Posted May 29th, 2009 in Game Development

At 5/29/09 12:17 PM, Glaiel-Gamer wrote:
recoil is too slow

Everything's too slow. Push your framerate up.

Response to: attach movie clip Posted May 28th, 2009 in Game Development

Give us your whole code. We can't really help you like this.

Response to: What does this mean? Posted May 28th, 2009 in Game Development

At 5/28/09 02:47 PM, Yambanshee wrote: ur just copy and pasting aren't you?

No he's writing his own random codes and changes one character untill there's no more syntax errors.

Response to: attach movie clip Posted May 28th, 2009 in Game Development

Also, don't do:

"armor+i"

But do this:

"armor"+i

If you're running it in an I loop.

Response to: Flash Stick Film -> Help! Posted May 28th, 2009 in Game Development

There's no animating program better than Flash, I think. You don't HAVE to draw everything over again every frame. You can use tweening, which automatically moves/shapes an object, google it for more information, and you can use layers. If you use layers, you don't have to draw EVERY thing in the Flash over.

Try and use some noob tutorials, like this one.

If animating's not your thing, try ActionScript, Flash's programming language.

Response to: AS2 Help Please Posted May 28th, 2009 in Game Development

At 5/28/09 12:59 PM, captinx wrote: Hi,

I am making a game don't really need to go into much detail about the game but im trying to make a wall that if the player (its a square)

is bigger than i certain height wont be able to go thought then when it becomes bellow the height it can go thought it.
so here is the AS2

onClipEvent (enterFrame) {
if (this.hitTest(_root.player1 && _root.player1._height>13)) {

_root.player1._x -= _root.player1.Pspeed;

} else {

}
}

so its the normal hitTest thing and it works fine if you remove the "&& _root.player1._height>13" but im not sure if thats how you are ment to write it out for the height.

Thanks
Eli

Try:

onClipEvent (enterFrame) {
 	if (this.hitTest(_root.player1) && _root.player1._height>13)) {
 		
 _root.player1._x -= _root.player1.Pspeed;
 
 	} else {
 //nothing, that makes it just go through.
}
}
Response to: The Flash 'Reg' Lounge Posted May 26th, 2009 in Game Development

At 5/26/09 02:22 PM, Paranoia wrote:
At 5/26/09 02:19 PM, Glaiel-Gamer wrote: I fail to see how people can still think like this.
I fail to see how people who think like this manage to operate keyboards.

I fail to see how people who think like this are allowed to Newgrounds.

Also, no combo breaker please
Response to: Sound ... Posted May 26th, 2009 in Game Development

At 5/26/09 10:21 AM, xtended12 wrote: Use on sound or movie?

Both.

Response to: Changing the status of Variables? Posted May 25th, 2009 in Game Development

_parent._parent doesn't work.
Try using _root.instancenameofparentparent

Response to: "Save" script Posted May 25th, 2009 in Game Development

At 5/25/09 12:41 PM, carmiecarmela wrote: the one by protto.deviantart.com

I checked it out and protto hasn't made anything yet.

Response to: "Save" script Posted May 25th, 2009 in Game Development

So... you mean with cookies? If that's the case, try looking through this:
http://www.newgrounds.com/bbs/topic/2359 09

Link to example pleash.

Response to: Need a game idea. Posted May 25th, 2009 in Game Development

At 5/25/09 09:16 AM, CompleteDouche wrote: Why don't you make a game where it is just a bunch of minigames(pong/tetris/space invaders) and add achievements/medals for it.

It takes time for Tom to approve you using medals in it. He's busy enough already and it would take at least a week.

Response to: The Flash 'Reg' Lounge Posted May 23rd, 2009 in Game Development

At 5/23/09 01:39 PM, Zyphonee wrote:
At 5/23/09 01:32 PM, Toast wrote: I can't believe I actually spent two entire weeks of my life without a second on the internet.
Nurse, bring this poor man 3.4 oz of internet memes, QUICK!

Also insert 10 mg of cache files!