Recent posts by crappymeatshield on Kongregate

Flag Post

Topic: Game Programming / AS3 API questions

I am just trying to figure this out quick is anyone who knows about the kongregate api plz tell me?

 
Flag Post

Topic: Game Programming / AS3 API questions

I am probably just missing this somewhere but when i am previewing the game how do i know if the stats are actually being submitted. Because when i try it on my computer in flash it tells me in the output the it is submitted, but i don’t know how to tell in the preview section here on kongregate.

 
Flag Post

Topic: Game Programming / API Documentation

I am probably just missing this somewhere but when i am previewing the game how do i know if the stats are actually being submitted. Because when i try it on my computer in flash it tells me in the output the it is submitted but i don’t know how to tell in the preview section here on kongregate.

 
Flag Post

Topic: Game Programming / LAG problems in my game

Originally posted by nojkimserious:

Are you calling that every frame? If so, do you ever call graphics.clear();? It could be that your graphics commands are building up, which would cause the game to slow down fairly quickly.

you are a genius thank you so much it works great now. No lag what so ever.

 
Flag Post

Topic: Game Programming / LAG problems in my game

I was thinking that might have something to do with it. i will work with that a bit. thanks a lot all of you for the help you have given me so far.

 
Flag Post

Topic: Game Programming / LAG problems in my game

square.graphics.lineStyle(1);
square.graphics.beginFill(0x000000);
square.graphics.drawRect(565,575,206,20);
square.graphics.endFill();
square.graphics.beginFill(0xffff00);
square.graphics.drawRect(568,576,energy*2,18);
square.graphics.endFill();

is this a good or bad way to have a box like a health bar i have one for energy that moves alot

 
Flag Post

Topic: Game Programming / LAG problems in my game

sorry for bad formatting but the actually splice line is bricks.splice(i,1);

 
Flag Post

Topic: Game Programming / LAG problems in my game

if (! bossphase) { for (var i:int=bricks.length-1; i>=0; i--) { // get brick rectangle var brickRect:Rectangle=bricks[i].getRect(this); // is there a brick collision if (brickRect.intersects(newBallRect)) { if (ball!=null) { // remove the brick removeChild(ball); ball=null; if (bricks[i].x==55) { brickcolum1--; trace(brickcolum1); } else if (bricks[i].x==117.5) { brickcolum2--; trace(brickcolum2); } else if (bricks[i].x==180) { brickcolum3--; trace(brickcolum3); } else if (bricks[i].x==242.5) { brickcolum4--; trace(brickcolum4); } else if (bricks[i].x==305) { brickcolum5--; trace(brickcolum5); } else if (bricks[i].x==367.5) { brickcolum6--; trace(brickcolum6); } else if (bricks[i].x==430) { brickcolum7--; trace(brickcolum7); } else if (bricks[i].x==492.5) { brickcolum8--; trace(brickcolum8); } else if (bricks[i].x==555) { brickcolum9--; trace(brickcolum9); } else if (bricks[i].x==617.5) { brickcolum10--; trace(brickcolum10); } else if (bricks[i].x==680) { brickcolum11--; trace(brickcolum11); } else if (bricks[i].x==742.5) { brickcolum12--; trace(brickcolum12); } removeChild(bricks[i]); bricks.splice(i,1); playSound(explosion); if (bricks.length<1&&! bossphase) { bossphase=true; //endGame(); return; } } } }
 
Flag Post

Topic: Game Programming / LAG problems in my game

OK i i looked at my code again and found that yes i am splicing out unused item in array. (sorry i am only using one array so i forgot what you was talking about)

 
Flag Post

Topic: Game Programming / LAG problems in my game

i am sorry i am not familiar with that. So therefore i don’t think i am.

 
Flag Post

Topic: Game Programming / LAG problems in my game

I actually learned it through class in college but that is besides the point and i figured that you did not want me to just post all the code on here. So what is the best way for me to let you guys look at the code or whatever.

 
Flag Post

Topic: Game Programming / LAG problems in my game

I am have lag problems in my game. i wrote it in AS3 i had my teacher try to help me but no luck. What happens is as you play the game is slowly slows down to the point where you can’t play it anymore. Any ideas i am pretty sure i am clearing everything off the stage and stuff. Tell me what you need from me if you need anything else to help me. Any help you can give me would be welcomed.

 
Flag Post

Topic: Game Programming / Preloader [AS3]

I am having problem trying to make a preloader in AS3. Anyone have any idea or suggestions, or maybe a good tutorial that you know about?