Recent posts by benmaster545 on Kongregate

Subscribe to Recent posts by benmaster545 on Kongregate

avatar for benmaster545 benmaster545 22 posts
Flag Post

Topic: Game Programming / Bullet Hell

Thanks a ton, I believe I will go learn as3 now.

 
avatar for benmaster545 benmaster545 22 posts
Flag Post

Topic: Game Programming / Bullet Hell

Hey guys. So I am trying to make a bullet hell game in as2, but I have come to a problem where I do not know how other bullet hell games make certain enemies pop up at certain times. I only know how to make it randomly generate enemies. Any ideas? Thanks.

 
avatar for benmaster545 benmaster545 22 posts
Flag Post

Topic: Game Programming / Need help please.

Ok, in games such as launch the turtle and flight, the character go slower when flying upwards and speeds up when flying downwards. I am new to programming so I have no clue how to do this and can find no information on how.

 
avatar for benmaster545 benmaster545 22 posts
Flag Post

Topic: Game Programming / Need help please.

Sorry, as2.

 
avatar for benmaster545 benmaster545 22 posts
Flag Post

Topic: Game Programming / Need help please.

So I am trying to create a game but I need a way to make the character go different speeds at different angles. For example if he were pointing down he would go faster than pointing up. Does anyone know a tutorial that teaches this? Thanks.

 
avatar for benmaster545 benmaster545 22 posts
Flag Post

Topic: Game Programming / Health Bar help

Hey. In a game I am making in actionscript 2, I am trying to make a health meter that uses individual dots to count for each “health point”. Does anyone know how I can make it to where after each damage the meter looses one dot? Thanks

 
avatar for benmaster545 benmaster545 22 posts
Flag Post

Topic: Game Programming / Object Follow the Mouse-help

Sorry. As a new programmer, I have no clue what that means.

 
avatar for benmaster545 benmaster545 22 posts
Flag Post

Topic: Game Programming / Object Follow the Mouse-help

Hey guys, I am making a game using actionscript 2. I have looked everywhere but I can not seem to find a way to make an object follow the mouse at a certain speed. I would like the object to slowly go towards the mouse with a speed that can be upgraded. Any ideas?

 
avatar for benmaster545 benmaster545 22 posts
Flag Post

Topic: Game Programming / Problem with bullets.

Hey, I found the problem. It was what gamebuilder suggested, my ship’s movie clip instance name was not ship. I changed it to ship and the problem was fixed. Thanks a ton everyone!

 
avatar for benmaster545 benmaster545 22 posts
Flag Post

Topic: Game Programming / Problem with bullets.

Any ideas on the problem?

 
avatar for benmaster545 benmaster545 22 posts
Flag Post

Topic: Game Programming / Problem with bullets.

That didnt work

 
avatar for benmaster545 benmaster545 22 posts
Flag Post

Topic: Game Programming / Problem with bullets.

Sure, I have a ship.as, bullet.as, and alien.as. Here is ship:

class Ship extends MovieClip
{
	var velocity;
	
	var enemyTimer;
	var shootLimiter;
	var enemies: Array;
	
	function onLoad()
	{
		velocity = 8;
		enemyTimer = 0;
		shootLimiter = 0;
		enemies = []
	}
	
	function onEnterFrame()
	{
		shootLimiter += 1;
		if( Key.isDown(Key.RIGHT) ){_x = _x + velocity;}
		if( Key.isDown(Key.LEFT) ){_x = _x - velocity;}
		
		if( Key.isDown(Key.SPACE) && shootLimiter > 20)
		{
			shootLimiter = 0;
			var bullet = _root.attachMovie("Bullet","Bullet" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
			bullet._x = _x;
			bullet._y = _y - 20;
		}
	 
	
		enemyTimer += 1;
		if(enemyTimer > 30)
		{
			enemyTimer = 0;
			var enemy = _root.attachMovie("Alien", "Alien" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
			enemies.push(enemy);
		}
	}
}

Here is bullet:

class Bullet extends MovieClip
{
	var speed;
	
	function onLoad()
	{
		speed = 20;
	}
	
	function onEnterFrame()
	{
		_y -= speed;
		
		for(var i in _root.ship.enemies)
		{
			if(this.hitTest( _root.ship.enemies[i] ) )
			{
				_root.ship.enemies[i].takeDamage();
				this.removeMovieClip();
			}
		}
		
		if(_y < -50)
		{
			this.removeMovieClip();
		}
	}
}

Here is alien:

class Alien extends MovieClip
{
	var speed;
	
	function onLoad()
	{
		_x = Math.random()*300;
		_y = -100
		speed = Math.random()*5 + 5;
	}
	
	function onEnterFrame()
	{
		if(this.hitTest(_root.ship))
		{
			explode();
		}
		
		_y += speed;
		if(_y > 650)
		{
			this.removeMovieClip();
		}
	}
	
	function takeDamage()
	{
		explode();
	}

	function explode()
	{
		var explosion = _root.attachMovie("Explosion","Explosion" + _root.getNextHighestDepth(),_root.getNextHighestDepth());
		explosion._x = _x;
		explosion._y = _y;
		this.removeMovieClip();
	}
}
 
avatar for benmaster545 benmaster545 22 posts
Flag Post

Topic: Game Programming / Problem with bullets.

I already have a var enemies; is this needed? I tried taking out var enemies and adding var enemies: Array;, it did not help.

 
avatar for benmaster545 benmaster545 22 posts
Flag Post

Topic: Game Programming / Problem with bullets.

I am pushing them into an array with:
enemies.push(enemy);
located in ship.as

 
avatar for benmaster545 benmaster545 22 posts
Flag Post

Topic: Game Programming / Problem with bullets.

I am new to programming, i do not know what that means. All that I am doing is only what is in the code in relation to bullets hitting enemies.

 
avatar for benmaster545 benmaster545 22 posts
Flag Post

Topic: Game Programming / Problem with bullets.

I tried that just now and it did not fix it. The problem is the bullets are flying right through the alien and just keep on going.

 
avatar for benmaster545 benmaster545 22 posts
Flag Post

Topic: Game Programming / Problem with bullets.

Hey, I am programming a new game with a ship, aliens, and bullets. For some reason, when I shoot with the ship, the bullets go right through the alien and don’t do anything. My bullet.as has this code:

for(var i in _root.ship.enemies)
{
	if(this.hitTest( _root.ship.enemies[i] ) )
	{
		this.removeMovieClip();
		_root.ship.enemies[i].takeDamage();
	}
}

and my alien.as has this code:

function takeDamage()
{
	explode();
}
function explode()
{
	var explosion = _root.attachMovie("Explosion","Explosion" + _root.getNextHighestDepth(),_root.getNextHighestDepth());
	explosion._x = _x;
	explosion._y = _y;
	this.removeMovieClip();
}

Anyone know the problem?

 
avatar for benmaster545 benmaster545 22 posts
Flag Post

Topic: Game Programming / Anyone know the answer to this problem?

I got flashdevelop and downloaded it. However, when i try to compile my project, it says “Exception: Could not locate lib\fcsh.jar in Flex SDK.” I have gone to this location and have found the file. Any idea on how to fix this?

 
avatar for benmaster545 benmaster545 22 posts
Flag Post

Topic: General Gaming / please help me

I got flashdevelop and downloaded it. However, when i try to compile my project, it says “Exception: Could not locate lib\fcsh.jar in Flex SDK.” I have gone to this location and have found the file. Any idea on how to fix this?

 
avatar for benmaster545 benmaster545 22 posts
Flag Post

Topic: Game Programming / I really need help

I got flashdevelop and downloaded it. However, when i try to compile my project, it says “Exception: Could not locate lib\fcsh.jar in Flex SDK.” I have gone to this location and have found the file. Any idea on how to fix this?

 
avatar for benmaster545 benmaster545 22 posts
Flag Post

Topic: Game Programming / Adobe Flash Pro cs6

what is the difference between adoba and flashdevelop?

 
avatar for benmaster545 benmaster545 22 posts
Flag Post

Topic: Game Programming / Adobe Flash Pro cs6

Hey guys, I would like to start programming and am trying to download the free trial of adobe flash pro cs6. However, when i starts to install, it says the current product installing is cs6 design and web premium. Is this normal or am i getting the wrong download?