Recent posts by MagickDragon on Kongregate

Flag Post

Topic: Collaborations / Game Designer needed!!

Someone to come up with ideas and design levels. PM if interested. You’ll get a portion of any profits we make only from games you’ve worked on. Money is not a guarantee, but if we make any you’ll get a fair share. BTW we do have a artist and programmer. And someone who will compose music for us sometimes. We’re also looking for a permanent composer/sound fx guy.

 
Flag Post

Topic: Collaborations / Programmer wanted! We have artist!

Originally posted by FantasyJam:

Knowing how to use Flash for coding purposes means you could use FlashDevelop, as well. They are not different in very many ways. That said, I know what you mean. ;)

I stopped reading when I read “zombie apocalypse”. I lost interest. It’s just another typical “survive the zombie apocalypse” idea. If this was a paid job, I would do it, but as a hobby, I would rather work on more interesting projects.

Okay… I hear ya. This game is sorta original. But you’re right about the Zombie idea being so worn that it takes a lot of effort to put a new spin on it.

 
Flag Post

Topic: Collaborations / Programmer wanted! We have artist!

You don’t see many of these but here’s the deal:

My team (Video Dragon games) has 1 artist, 2 designers, and 1 programmer. We even have someone to make background music and sound effects. Our problem is our programmer isn’t very good. If we get a good programmer to join our team (even if it’s for a limited time) then we would be able to complete our first game. It’s not one of those stupid beginner games. It will turn out pretty great, that is, if we get a good programmer on our team.

The payment is percentage of money earned. Which means if you help us make a great game then you’ll get more money (ad rev mostly) We’re mainly looking for people who don’t mind not getting money.

If you’re interested merely respond to this topic and we’ll see about getting you on our team.

Here’s a brief summary of our game as we want it to be: “It’s about a Zombie apocalypse where you start in your house one day when the Zombie desease breaks out. You need to quickly arm yourself to fend off the zombies. You think that you can get a boat at the dock on the other side of town and sail out to sea and find some place safer. But getting there won’t be easy! You arm yourself with a baseball bat or a knife hoping to find better weapontry later on. Shot your way through each city block to the docks to freedom in this epic game!”

Here’s what it is as of now (two weeks into development): A small game where you shoot zombies that come endlessly from all sides. No score, but it does have a health bar. As you can see we need help.

BTW We use FlashDevelop so if you wanna join you need to know how to use that and not Flash or Stencyl.

http://videodragongames.webs.com/

 
Flag Post

Topic: Game Programming / Problems with code.

Originally posted by NineFiveThree:
Originally posted by bbman1999:

@NineFiveThree Whatever. Then I would have more code.

lol. get yourself a serious code editor.

AS3 is not a code editor. I’m using FD. Which, about most programmers think is better then CS.

 
Flag Post

Topic: Game Programming / Problems with code.

So um… Can someone help?

 
Flag Post

Topic: Game Programming / Problems with code.

Anyway I still have 1 more problem…

 
Flag Post

Topic: Game Programming / Problems with code.

@NineFiveThree Whatever. Then I would have more code.

 
Flag Post

Topic: Game Programming / Problems with code.

@Draco18s K. Can u help with the other problems?

 
Flag Post

Topic: Game Programming / Problems with code.

Also senekis
player.rotation = Math.atan2(mouseY - player.y, mouseX - player.x) / (Math.PI / 180);
works but
player.rotation = Math.atan2(mouseY - player.y, mouseX - player.x) / Math.PI / 180;
doesn’t.

 
Flag Post

Topic: Game Programming / Problems with code.

@Senekis93 Doesn’t work. and for the “Also, you need to splice it.
You should use a for/while loop instead of a for each one.” Idk what that means. And the rotation doesn’t work either.

@player_03 Yeah. I started this game using a tutorial then started working on my own. So the tutorial told me to do that.

@NineFiveThree ??

Also sorry for the incredibly large code. It has to do about 80% of the stuff in the game.

 
Flag Post

Topic: Game Programming / Problems with code.

It doesn’t destroy enemies and it doesn’t rotate player and it doesn’t draw the health.

http://pastebin.com/9Se95pR5

package
{
	import flash.display.MovieClip;
	import flash.events.Event;
	import flash.utils.Timer;
	import flash.events.TimerEvent;
	import flash.display.BitmapData;
	import flash.display.Bitmap;
	import flash.display.Sprite;
	import flash.geom.*;
	import flash.events.MouseEvent;
	import flash.events.KeyboardEvent;
	import flash.ui.Mouse;
	import flash.display.Sprite;
	import flash.display.Graphics;
	public class PlayScreen extends MovieClip
	{
		[Embed(source='BGtile_sprite.png')]
		private var BGtile_spriteClass:Class;
		private var bgtile:Bitmap = new BGtile_spriteClass();
		
		public var tile:BitmapData = bgtile.bitmapData;
		public var army:Array;
		public var bullets:Array;
		public var player:Player;
		public var healthBar:HealthBar;
		public var hpBack:HpBack;
		public var aim:Aim;
		public var background:Background;
		public var gameTimer:Timer;
		public var screen:BitmapData = new BitmapData(600, 400, false, 0xFFFFFF);
		public var screenBitmap:Bitmap = new Bitmap(screen);
		public var screenSprite:Sprite = new Sprite();
		public var BulletCreate:Boolean = false;
		public var W:Boolean = false;
		public var A:Boolean = false;
		public var S:Boolean = false;
		public var D:Boolean = false;
		
		public function PlayScreen()
		{
			addEventListener( Event.ADDED_TO_STAGE, eStage );
			for(var i:int = 0; i < 600; i += 32) {
				for(var t:int = 0; t < 400; t += 32) {
					screen.copyPixels(tile, new Rectangle(0, 0, 32, 32), new Point(i, t));
				}
			}
			addChild(screenSprite);
			screenSprite.addChild(screenBitmap);
			army = new Array;
			var newEnemy = new Enemy( 100, -15, 1);
			army.push(newEnemy);
			addChild(newEnemy);
			player = new Player();
			addChild(player);
			hpBack = new HpBack();
			addChild(hpBack);
			healthBar = new HealthBar();
			addChild(healthBar);
			aim = new Aim();
			addChild(aim);
			Mouse.hide();
			gameTimer = new Timer(25);
			gameTimer.addEventListener(TimerEvent.TIMER, Tick);
			gameTimer.start();
			bullets = new Array;
		}
		
		
		public function eStage(e:Event)
		{
			addEventListener( MouseEvent.CLICK, eClick );
			stage.addEventListener( KeyboardEvent.KEY_DOWN, eKeyDown );
			stage.addEventListener( KeyboardEvent.KEY_UP, eKeyUp );
		}
		
		public function eClick(e:MouseEvent)
		{
			trace("Click");
			if (!BulletCreate)
			{
				BulletCreate = true;
			}
		}
		
		
		private function eKeyDown(e:KeyboardEvent):void {
			trace("Key Down.");
			if (e.keyCode == 68) {
				if (!D) {
					D = true;
				}
			} else if (e.keyCode == 65) {
				if (!A) {
					A = true;
				}
			} else if (e.keyCode == 83) {
				if (!W) {
					W = true;
				}
			} else if (e.keyCode == 87) {
				if (!S) {
					S = true;
				}
			}
		}
		
		
		private function eKeyUp(e:KeyboardEvent):void {
			trace("Key Up.");
			if (e.keyCode == 68) {
				if (D) {
					D = false;
				}
			} else if (e.keyCode == 65) {
				if (A) {
					A = false;
				}
			} else if (e.keyCode == 83) {
				if (W) {
					W = false;
				}
			} else if (e.keyCode == 87) {
				if (S) {
					S = false;
				}
			}
		}
		
		
		public function Tick(timerEvent:TimerEvent):void
		{
			//Enemy.as
			if (Math.random() < 0.1)
			{
				var DirRan:Number = Math.random()
				if (DirRan < 0.25)
				{
					var randomX:Number = Math.random() * 600;
					var newEnemy:Enemy = new Enemy( randomX, -15, 1 );
				} else if (DirRan < 0.5) {
					var randomX:Number = Math.random() * 600;
					var newEnemy:Enemy = new Enemy( randomX, 400, 2 );
				} else if (DirRan < 0.75) {
					var randomX:Number = Math.random() * 400;
					var newEnemy:Enemy = new Enemy( -15, randomX, 3 );
				} else {
					var randomX:Number = Math.random() * 400;
					var newEnemy:Enemy = new Enemy( 600, randomX, 4 );
				}
				army.push( newEnemy );
				addChildAt( newEnemy, 1 );
			}
			for each (var enemy:Enemy in army)
			{
				if (player.hitTestObject(enemy))
				{
					player.HP -= 1;
				}
				if (player.HP <= 0)
				{
					gameTimer.stop();
					var gameOver:GameOver = new GameOver();
					gameOver.x = 0;
					gameOver.y = 0;
					addChild(gameOver);
				}
				enemy.x -= Math.cos(Math.atan2(enemy.y - player.y, enemy.x - player.x)) * 0.5;
				enemy.y -= Math.sin(Math.atan2(enemy.y - player.y, enemy.x - player.x)) * 0.5;
				enemy.rotation = Math.atan2(player.y - enemy.y, player.x - enemy.x) / (Math.PI / 180);
			}
			//Bullet.as
			if (BulletCreate)
			{
				BulletCreate = false;
				var angle_in_rad:Number = Math.atan2(mouseY - player.y, mouseX - player.x);
				var bullet:Bullet = new Bullet();
				bullet.x = player.x;
				bullet.y = player.y;
				bullet.rotation = angle_in_rad * 180 / Math.PI;
				addChild(bullet);
			}
			for each (var bullet:Bullet in bullets)
			{
				for each (var enemy:Enemy in army)
				{
					if (bullets[bullet].hitTestObject(army[enemy]))
					{
						trace("Shot!");
						removeChild(army[enemy]);
						removeChild(bullets[bullet]);
					}
				}
			}
			//Player.as
			if (player.HP < 99.9)
			{
				player.HP += 0.1;
			}
			if (A)
			{
				player.x-=5;
			}
			if (D)
			{
				player.x+=5;
			}
			if (W)
			{
				player.y+=5;
			}
			if (S)
			{
				player.y-=5;
			}
			player.rotation = Math.atan2(mouseY - player.y, mouseX - player.x) / Math.PI * 180;
			trace(player.rotation, player.x, player.y);
			aim.x = mouseX;
			aim.y = mouseY;
			healthBar.draw(player.HP, 5, 5);
			hpBack.draw(4, 4);
		}
	}
}
 
Flag Post

Topic: Collaborations / Artist wanted! %33 of all profits as payment!

Like i said I need an artist. ANY skill level. If you can draw something that’s decent then I’ll except you. And, like the title said, %33 of ALL profits. That includes ad revenue and basically any cash we make. The percentage is negotiable. Please respond. I’m aware that there are many better offers but I’ll except any skill level so if you got rejected cause you’re not good enough post here. FYI this is not long term. You can quit at any time you want.

 
Flag Post

Topic: Collaborations / Does age matter?

true that! couldn’t of said it better myself Jephz. Anyway I’m looking for an artist and people always give me a hard time cause of my age.

 
Flag Post

Topic: Game Programming / This simple script not working.

Thanks for the help but I got help on GDR like 10 minutes ago….But thanks anyway!

 
Flag Post

Topic: Game Programming / This simple script not working.

I’m following MJWs avoider tutorial located here http://gamedev.michaeljameswilliams.com/2008/09/17/avoider-game-tutorial-1/
And the scripts below aren’t working. FYI it isn’t tracing either:

Main.as

package 
{
	import flash.display.MovieClip;
	public class Main extends MovieClip 
	{
		public var enemy:Enemy;
 
		public function Main() 
		{
			enemy = new Enemy();
			addChild( enemy );
		}
	}
}

Enemy.as

package
{
	import flash.display.MovieClip;
	import flash.display.Bitmap;
	public class Enemy extends MovieClip
	{
		[Embed(source="../bin/Sprite_Enemy.png")]
		private var EnemyImageClass:Class;
		private var EnemyImage:Bitmap = new EnemyImageClass();
		public function Enemy()
		{
			trace("Enemy created");
			x = 100;
			y = 0;
			addChild(EnemyImage);
		}
		public function eMove():void
		{
			y += 3;
		}
	}
}
 
Flag Post

Topic: Game Programming / Why is this code wrong?

Originally posted by Senekis93:

Your code makes no sense at all, there’s no point in helping you at this stage. Read the stickies, there are some tutorials for beginners and one about code formatting.

Where are the tutorials? I can’t find any good ones that aren’t for flash.

 
Flag Post

Topic: Game Programming / Why is this code wrong?

Originally posted by vesperbot:

drop both “var” from if’s, and turn strict mode on for FD compiler, and heed to warnings.

How do i turn on strict mode?

 
Flag Post

Topic: Game Programming / Why is this code wrong?

This is supposed to make an object that goes right and left at 5 pixels per second. What’s wrong with it?

package
{
import flash.display.MovieClip;
public class Player extends MovieClip
{
public function Player()
{
var Xvelo = 5;
[Embed(source=“Player_spr.png”)]
x = 300;
y = 150;
if (keyEvent.39)
{
var x = x + Xvelo;
}
if (keyEvent.37)
{
var x = x – Xvelo;
}
}
}
}

And here’s a code to make the main game screen but it doesn’t work:

package
{
var stage.width = 600;
var stage.height = 300;
addChild (Player)
}

Fyi i’m using FD so i have to use %100 code.

 
Flag Post

Topic: Game Programming / I need help with basic AS3 concepts?

ok thanks for the help! I gotta go to Google!!

 
Flag Post

Topic: Game Programming / I need help with basic AS3 concepts?

Originally posted by qwerber:
Originally posted by bbman1999:
Originally posted by qwerber:

1) stage.width
2) use Loader and then addChild
3) no frames, only states. Dynamically generate menu
4) addChild (OMG you don’t even know this one?)
5) wtf are you saying
6) yVel = yVel + g; y=y+yVel; KeyEvents
7) set yVel on jump to negative jumpPower;
8) position check
9) you will have to learn advanced math and algebra for this one, you won’t be able to do it
10) remove and add again
11) extern resources or spritesheet blitting

wow thanks! But for 5 I’m basicly saying to add an image to an object just worded differently. For 6 i belive u should use xVel for horizantal movement but i accidently said vertical. 8 i don’t know how to do that. 10 and 11 don’t know how to do that. 9 What? but it’s just falling and landing on the floor and not going through it! u might not have understood 9. For the rest i just need more info.

for collision with the floor you will have to either tolerate one single floor and no platforms or anthing or you will have to learn Vectors and Projection.

what r Vectors and projections? Also can’t i just make 32×32 objects and tile them like 100,0 100,32 100,64 ect. ect.?

 
Flag Post

Topic: Game Programming / I need help with basic AS3 concepts?

Originally posted by qwerber:

1) stage.width
2) use Loader and then addChild
3) no frames, only states. Dynamically generate menu
4) addChild (OMG you don’t even know this one?)
5) wtf are you saying
6) yVel = yVel + g; y=y+yVel; KeyEvents
7) set yVel on jump to negative jumpPower;
8) position check
9) you will have to learn advanced math and algebra for this one, you won’t be able to do it
10) remove and add again
11) extern resources or spritesheet blitting

wow thanks! But for 5 I’m basicly saying to add an image to an object just worded differently. For 6 i belive u should use xVel for horizantal movement but i accidently said vertical. 8 i don’t know how to do that. 10 and 11 don’t know how to do that. 9 What? but it’s just falling and landing on the floor and not going through it! u might not have understood 9. For the rest i just need more info.

 
Flag Post

Topic: Game Programming / I need help with basic AS3 concepts?

I’m using FD and thus i can’t use Flashs “fancy tools” and can only use code. So i need to know how to:
1) change screen size
2) add a background picture
3) make a menu and other frames
4) put objects on the screen
5) add a sprite on an object

onto more advanced (but still EXTREMLY novice) questions:

6) Add gravity and make vertical movement using left and right
7) make a jump thing
8) making collision events
9) making things stop (such as a collision with the floor.)
10) Change sprite
11) Animations

That’s all i can think of. I know it’s a lot but i for one think it’s easier then asking 11 separate questions!

It would also be helpful if anyone knows of a AS3 wiki.