Be a Supporter!
Response to: light and stuff Posted November 18th, 2010 in Game Development

At 11/18/10 03:17 PM, I-smel wrote: Hey I'm makin a stealth game.

It'd be good if I had the whole room dark, but there were circles of visibility around the player and the enemies. Like gradients that blend into each other, or something..

Is this even possible?

as3 or as2?

In as3 you could just add the child to the player movieclip

player_mc.addChild(gradient_mc);
Opinion of my thus far Posted November 17th, 2010 in Game Development

I've been making an "RPG" engine, one i hope can be extended easily with an interface. Right now, all it has is a text interface, but it'd be easy to make it arrow keys and mouse input.

So I'd like to know, do you like it so far? Would you play it?

Responses are greatly appreciated :D

game
Right click for your inventory list.
Commands:

Go right
go left
fight
attack
draw
fire

To change your character:
cchar (head/shirt/pants)

To generate an enemy (while in battle):
creen (level/head/shirt/pants)

I need to write a list of heads and shirts etc. but for now tell me what you think :D

Response to: Cubic Zen 3D Posted November 17th, 2010 in Game Development

At 11/17/10 09:56 AM, PSvils wrote: I say don't worry one bit about graphics yet. It doesn't look like you have an engine setup...as in at all...

He does have a 3d engine, look at the link in his sig.

Response to: 24 songs = $15 mill, in lawsuit Posted November 4th, 2010 in General

At 11/4/10 08:36 PM, Cootie wrote:
At 11/4/10 08:33 PM, Boss wrote:
At 11/4/10 07:46 PM, Cootie wrote: being robbed.
do you revise your posts before hitting post because i also do not but i founded this and if we had an edit button you may wish to change this
They are being stolen from. If you owned a store that sold candy bars and I used my computer to download a candy bar that came from your store it would be stealing. I know that it can't actually happen, but it is the principal that I am talking about.

No, it's more like someone buying a candy bar, uploading it to their computer and then sharing with everyone else. You're not at a loss. Someone is eating a copy of your candy bar, but it isn't yours. No item is being taken from anyone else.

People with Cs4 conversion help Posted October 13th, 2010 in Game Development

I'd greatly appreciate it if someone could convert this file to a cs3 document:
I don't have cs4 unfortunately, and my partner uses cs3.

Response to: walk control help Posted October 13th, 2010 in Game Development

onClipEvent (load) { 
var moveSpeed = 10
if (Key.isDown(Key.RIGHT)) { this._x += moveSpeed;}
if (Key.isDown(Key.LEFT)) { this._x -= moveSpeed;}
if (Key.isDown(Key.DOWN)) { this._y -= moveSpeed;}
if (Key.isDown(Key.UP)) { this._y += moveSpeed;}
}

by the way, you don't need all the onClipEvents

Response to: walk control help Posted October 13th, 2010 in Game Development

At 10/13/10 08:32 PM, egoraptorfreak1 wrote: a u help me with one other thing plz i cant find a working tutorial for a hitTest any help?

Sure you've seen this, but this works.

Response to: Variable prob. (Example fla inside) Posted October 13th, 2010 in Game Development

At 10/13/10 04:03 PM, Johnnsen wrote: Dropbox seems to have messed up (or me) but the download link doesn't work. Here is the correct one:
http://dl.dropbox.com/u/6414392/plane%20 example.zip

Also: By "attach more planes" I meant attaching by code, as in attachMovieClip

From what i can tell, you're not using the same variable for the plane and bomb type.

Make a public variable in the main class like

public var type = Math.floor(math.random()*2+1)

Or you need to add one to the end of it

public var bomb_type = Math.floor(math.random()*2+1+1)

Try either.

Response to: walk control help Posted October 13th, 2010 in Game Development

should explain what i did, right?

You were trying to get the character to move +x and +y for both key presses. You want to make it so that it subtracts x (-x) to go down and subtracts y(-y) to go left.

Response to: walk control help Posted October 13th, 2010 in Game Development

At 10/13/10 08:20 PM, egoraptorfreak1 wrote: i need help with my walk code:

onClipEvent (load) { moveSpeed = 10;}onClipEvent (enterFrame) { if (Key.isDown(Key.RIGHT)) { this._x += moveSpeed;}}
onClipEvent (load) { moveSpeed = 10;}onClipEvent (enterFrame) { if (Key.isDown(Key.LEFT)) { this._x += moveSpeed;}}
onClipEvent (load) { moveSpeed = 10;}onClipEvent (enterFrame) { if (Key.isDown(Key.DOWN)) { this._y += moveSpeed;}}
onClipEvent (load) { moveSpeed = 10;}onClipEvent (enterFrame) { if (Key.isDown(Key.UP)) { this._y += moveSpeed;}}

when i press left he goes right and when i press right he goes right and when i press up he goes down and when i press down he goes down any help

You're gonna have to make it

onClipEvent (load) { moveSpeed = 10;}onClipEvent (enterFrame) { if (Key.isDown(Key.RIGHT)) { this._x += moveSpeed;}}
 onClipEvent (load) { moveSpeed = 10;}onClipEvent (enterFrame) { if (Key.isDown(Key.LEFT)) { this._x -= moveSpeed;}}
onClipEvent (load) { moveSpeed = 10;}onClipEvent (enterFrame) { if (Key.isDown(Key.DOWN)) { this._y -= moveSpeed;}}
onClipEvent (load) { moveSpeed = 10;}onClipEvent (enterFrame) { if (Key.isDown(Key.UP)) { this._y += moveSpeed;}}
Response to: Dumb shit you had to do in school Posted October 12th, 2010 in General

I think the idea of repetitive homework is stupid. The kids who understand it sit there and do the same monotonous shit over and over, the kids who don't get it can't do shit all so the teacher spends 10 minutes yelling at them, and the kids who kind of get it end up getting it all wrong because they screwed up on one part.

And english. All you ever do is learn for future learning: learning how to write for gr 12, learning how to write for college, blah blah blah. Then what? When do you ever have to write an essay ever again?

Total. Bullshit.

Response to: Using a function to name a MoveClip Posted October 11th, 2010 in Game Development

Is this still confusing? I understand it but i can't really communicate it that well.

Response to: Using a function to name a MoveClip Posted October 11th, 2010 in Game Development

package 
{
	import flash.display.*;
	import flash.events.*;
	import flash.text.*;
	import flash.ui.*;
	import flash.events.*;
	import flash.utils.*;

	public class chargen extends MovieClip
	{
		public function chargen(){
			genit("tyler",1,4,2);
		}
		public function genit(nameS:String,headN:Number,shirtN:Number,pantsN:Number){
			nameS = new player();
			addChild(nameS);
			nameS.head1.gotoAndStop(headN);
			nameS.shirt1.gotoAndStop(shirtN);
			nameS.pants1.gotoAndStop(pantsN);
			nameS.x = 100
			nameS.y = 100
			trace("created");
		}

Simply put, I want this function

genit("tyler",1,4,2);

to create a movieclip named tyler.

Response to: Using a function to name a MoveClip Posted October 11th, 2010 in Game Development

Is there any chance of help out there?


I'm trying to name a MovieClip via a function:

public function name(nameS:MovieClip){
     nameS = new mc();//MC being the movieclip
     addChild(nameS);
}

I'd access it like this:

name(player1);

I can't figure out, however, what to use to get this to work properly. is there something I'm missing?

Response to: Protest The Hero's new album Posted September 28th, 2010 in General

At 9/28/10 10:20 PM, amanda wrote: Eh they're alright.

Now, BMTH's new album is going to suck major dick.

BMTH is mehish. I don't really like that kind of stuff.

Protest The Hero's new album Posted September 28th, 2010 in General

If you even know who they are, you excited for their new album? Sounds like pretty awesome stuff to me.
Their current stuff is amazing.

How do you feel about this?

Response to: Suggest Awsome Bands Posted September 28th, 2010 in General

At 9/28/10 07:41 PM, Freaki-boy92 wrote: Slay... no wait, they're thrash metal
Iron Mai... no, they're metal too
Mastod... art rock, often considered metal
Triv... metal, maybe even metalcore...
Dread Zeppelin- there you go. imagine Led Zeppelin, but reggae, and Elvis on the vocals.

Trivium is totally metalcore.

If you're interested in something new possibly, check out protest the hero. They may be metal, but they're unique.

Response to: Defended a kid today. Posted September 28th, 2010 in General

At 9/28/10 09:48 PM, RyderOmega wrote: He's just a 20 year old, and you're scared of him? Wow you're weak.

Bench pressing jock 20 year old.

Response to: Defended a kid today. Posted September 28th, 2010 in General

At 9/28/10 08:20 PM, Jackdabomb wrote:
At 9/28/10 08:15 PM, FireWOLF109 wrote:
At 9/28/10 08:13 PM, Jackdabomb wrote:
At 9/28/10 08:09 PM, FireWOLF109 wrote: That was actually a good thing to do... cause after all, he was strangling the kid.... it even earned you a modship if you end up joining my site
He's asking for help not modship.

Talk to the brother, if he seems intent on actually fighting you then call the police.
i said it was a good thing to do... and besides, something has to be wrong with the kid if he makes a threat of any kind after what he did
Saying it's a good thing to do is still not helping him, I agree there's something wrong with him, he's a typical schoolyard bully with the mindset of a five year old.

I've made a slight revolution in my school for things like this. He's a schoolyard bully, but I've got the bigger "cool kids" aggressively putting a stop to shit like that. My friends have all stopped him from being a dick before, this is as personal as it got, and hopefully will get. If not, he can answer to the majority of the gr 11 class.

Response to: Defended a kid today. Posted September 28th, 2010 in General

At 9/28/10 07:49 PM, xsdemonite wrote: Ok, you might be lying. You should go and speak to the kids mother and tell her what these other kids are doing. You did your part and the mum has to sort this out not you, its not your responsibility as long as you tell her if you don't your making this your fight. That doesn't help this kid. She needs to know, and her family can deal with it.

That will never help XD

This kid is obviously acting this way because his mom hasn't taught him how to properly interact in a social environment. I know what I did hasn't fixed him, nor will it fix him, but I've got practically the whole gr 11 and 12 classes at my school is watching out for this guy being a dick. I've got enough friends who hate this sort of thing that he no longer should be able to pull shit shit at school.

Response to: Defended a kid today. Posted September 28th, 2010 in General

I'll probably either end up talking to him, or getting a small group of friends together to beat him when he comes after me. I didn't do shit, I'm 16, he's 20. He can fuck off if he wants to fight a 16 year old.

Response to: Defended a kid today. Posted September 28th, 2010 in General

At 9/28/10 06:54 PM, DP36 wrote: Why would the friends clap? Well maybe you should start to train for it, or you could not care and then when he tries to get his brother to fight you try to talk your way out of it. He probably won't do it, i know a guy like that and he justs wants to intimidate you for that time being when he speaks of his brother.

The friends clapped because they weren't really his friends, they were just hanging out with him because he's "cool". I snapped and told him to fuck off.

I'm not legitimately scared, but his brother looks like a psycho. If he does assualt me though yeah, charges will be pressed I guess. Not too worried about it, wanted to know what the community thought.

Response to: Defended a kid today. Posted September 28th, 2010 in General

At 9/28/10 06:30 PM, Sequenced wrote: You got into this mess, now you got to stay in it until it's over.

How. I told the kid to stop picking on his friends. Sorry for trying to stand up for smaller people.

Defended a kid today. Posted September 28th, 2010 in General

I was walking home from school today and I saw this kid strangling his "friends" with a sweater. I've seen this kid picking on his friends before, so this time i was fed up enough to do something about it. As soon as he put the sweater up to his one of his friends back to strangle him again, I grabbed it, told him to fucking stop and piss off. His friends clapped.

The only thing I'm slightly worried about is that he threatened to sick his brother on me, who I've heard is strong, but I don't know what he'd do about it. What should i do about that newgrounds? His brother is 20, I'm 16. I'm fairly strong, but the guy is 20.

Response to: AS3 Listener help. Posted September 25th, 2010 in Game Development

At 9/25/10 12:23 AM, ObeseDude wrote: stage is null.

public function main():void {
addEventListener(Event.ADDED_TO_STAGE, init);
}

private function init(e:Event):void {
removeEventListener(Event.ADDED_TO_STAGE , init);
//TODO - stage is no longer null
}

I wish that were the problem.

The thing that boggles my mind is that that code worked yesterday, I haven't changed anything, and now it's erroring out on me.

Response to: AS3 Listener help. Posted September 24th, 2010 in Game Development

Flash forums are a graveyard, no?

AS3 Listener help. Posted September 24th, 2010 in Game Development

I've got this set up so that on enter press it checks input in a text box and then checks to see if it matches anything. This was working totally fine yesterday. Today, I boot up flash, no changes to the file , and when i run it I get the 1009 error.(TypeError: Error #1009: Cannot access a property or method of a null object reference.
at main())

What is this?

package 
{
	import flash.display.*;
	import flash.events.*;
	import flash.text.*;
	import flash.ui.*;
	import flash.events.*;

	public class main extends MovieClip
	{
		public function main()
		{
			stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownListener);
			input.text = "";
			output.text = "enter play to start";
			checkIf();
		}
		public function keyDownListener(event : KeyboardEvent)
		{
			if (event.keyCode == Keyboard.ENTER)
			{
				checkIf();
				clearInput();
				level1.gotoAndStop(nameMap[roomValue1][roomValue2]);
			}
		}

I've checked everything, the only problem is in the line of

stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownListener);

i removed that and it didn't error out on me. Any help would be greatly appreciated.

Response to: How Do I Compact A Swf? Posted September 15th, 2010 in Game Development

At 9/15/10 07:24 PM, Matt2k8 wrote: I need to make the file size smaller, any suggestions?

Change .mp3 quality and bitmap quality to a lower value, in publish settings>flash compress movie.
If you have a lot of .mp3 and images in your flash and you didn't change the quality, that is what is causing a large filesize.

Response to: Temporary Invisibility Posted September 15th, 2010 in Game Development

At 9/15/10 07:42 PM, ChrisCookie wrote: Hello everyone, I'm currently working on a game, and I'm having troubles with something.
Basically, what I'm trying to do is make it so that once you get hit by a hazard/enemy, there's a few seconds of invincibility before you can get hurt again.

I'm using AS2, and the code I'm using for the hazard is this:

onClipEvent(enterFrame) {
if(_root.char.hitTest(this)) {
_root.vcam.hp.nextFrame();
}
}

I've tried a few different methods, but none of them have worked.

Any ideas?
All help is appreciated.

If you post the source code, I can write you a little script to put into it with instructions.
I'll need the source though.