PDA

View Full Version : My First Minigame and its Issues...


Kingslayer
05-28-2008, 09:33 AM
Any Feedback is Welcome...

Hey i made my First Minigame, pls don't comment anything like RipOff. It is just a Simple Shooter whith which i learn how to programm Actionscript. My Problem is that it is some Performance Issues it is really Laggy and sometimes it just crashes.

Down there i have the Files so u Guys can check it out.

.fla file
http://bananaz2.kilu.de/index.php?do...4c9b2e3db1f441

.swf file
http://bananaz2.kilu.de/index.php?do...b0585037cdb052

I would need some advice why it crashes and how to enhance the Gameperformance. It would be really nice if u could give me always a little example not just the name of the Method cause i just started up... :rolleyes:


So far Kingslayer

Any Feedback is Welcome...

rrh
05-28-2008, 11:18 PM
The links don't work.

Kingslayer
05-29-2008, 12:03 AM
Thx for that im sorry i dont know what happened so here again...

The .fla
http://bananaz2.kilu.de/index.php?downloade_datei=7ba2173085379598aa4c9b2e 3db1f441
The .swf
http://bananaz2.kilu.de/index.php?downloade_datei=ca514ce40df0e4dc1fb05850 37cdb052

VictorTheGamer
05-29-2008, 02:04 AM
OMG YOU ROCK!

Can you tell me how to do it?

we can work together XD

DUDE THIS IS AWESOME!

anyways my messenger nick is

victorthomasho@yahoo.com

By the way, we can work together so you can show me some experiences XD

ThankYou YOU YOU!

Kingslayer
05-29-2008, 02:12 AM
Dude i dont rock it took me several weeks to put that together... i have a bunch of problems with it and it is laggy as hell... well you can look at my coding its there, just take the .fla file...

VictorTheGamer
05-29-2008, 02:48 AM
Dude i dont rock it took me several weeks to put that together... i have a bunch of problems with it and it is laggy as hell... well you can look at my coding its there, just take the .fla file...

Well it rocks tho.

XD

You should make a "Start Over" button at the (scene play , 2nd frame) so when a person lose , he/she can get a chance to start over instead of turn off the .swf and reopen

Kingslayer
05-29-2008, 04:14 AM
good idea... i got to make borders for the game too... so u cant cross over the sides.

zilchvortex
05-29-2008, 12:26 PM
Victor do you mind if i add you to my im because you seem to be a guy with lots of ideas for games and i need some ideas thanx

Kingslayer
06-01-2008, 05:15 AM
can anyone tell me why the performance of my game is so bad? PS i got a new version

http://bananaz2.kilu.de/index.php?downloade_datei=cc8f1e12648c3b16d6910e35 e3f25183

fitz
06-02-2008, 04:07 PM
where's the latest FLA? I'll take a look and might be able to tell you why it's so laggy

Kingslayer
06-03-2008, 04:02 AM
http://bananaz2.kilu.de/index.php?downloade_datei=7ba2173085379598aa4c9b2e 3db1f441

here you go... i gotta upload the newest one tomorrow but the code doesnt really change....

fitz
06-03-2008, 04:01 PM
Doh, it could be because your file is using Flash 7, Actionscript 2.0. Sorry can't help ya. I'm strictly AS3 :)

rrh
06-03-2008, 04:55 PM
I'm a little wary of how you're removing movieClips:

Try this:

trace("line1");
_root.createEmptyMovieClip("identifier", this.getDepth());
trace("line2");
identifier.removeMovieClip();

You will notice that the "line2" trace is never executed, so neither is the identifier.removeMovieClip() and you will end up with a whole bunch of empty movieclips before too long. And that will bog you down.

I can't quickly explain what I would have done to remove that, because I would have structured the whole program differently, and would have had an array of asteroids, an array of lasers, etc. And then I'd loop through those arrays when I decide which ones need to be deleted. And like Fitz, I do games in AS3 now, so I don't remember if there's any getMovieClipAtDepth or something in AS2.

Kingslayer
06-03-2008, 07:55 PM
thx for the help, i think i fixed that i got another object that removes the 'identifiers" now

nam = _root.identifier;
if (nam<>"undefined") {
nam.removeMovieClip();

still laggy tho... does anybody else have ideas? btw here is my newest version.

http://bananaz2.kilu.de/index.php?downloade_datei=67aac767dd60f471373ac2de 69e166fe