A Flash Developer Resource Site

Results 1 to 19 of 19

Thread: [in development] Flash empires

  1. #1
    It's true..I brought sexy back smith1302's Avatar
    Join Date
    Sep 2005
    Location
    here
    Posts
    343

    [in development] Flash empires

    Hey everyone, I just wanna update you guys on what Im working on. Its in its early stage, I still have tons of stuff to do with it. Im not even sure if the name flash empires is permanent yet. When the enemies suddenly dissapear dont worry, its just the level increasing.

    How to play: Click the castle and the barrack to access the menus.
    Drag and drop to create units.
    -kill the bad guys. before they destroy your castle

    Things to do: Money system, more enemies, level updater text. Sound. Main menu. Castle health bar. Upgrades for towers and infantry. Story line .

    Theres the link to play:

    http://www1.freewebs.com/smith1302/
    Hey check out my arcade sites!
    Ninja Games | WW2 Games

  2. #2
    Senior Member
    Join Date
    Aug 2007
    Location
    Spencerville, Ontario, Canada
    Posts
    146
    Looks promising, I was really big in to Warcraft 2 for the longest time, so this game is intriguing to me.

  3. #3
    It's true..I brought sexy back smith1302's Avatar
    Join Date
    Sep 2005
    Location
    here
    Posts
    343
    yea, i was noticing that tower defense games were doing very well, so I decided to make one with a more age of empires type feel.
    Hey check out my arcade sites!
    Ninja Games | WW2 Games

  4. #4
    Game Player - Developer scheletro's Avatar
    Join Date
    Mar 2005
    Location
    México living in Barcelona
    Posts
    1,121
    LOL, It was a demo and I were playing more than I though, I want to see the final result


    "I love to make them as I love to play them"

  5. #5
    5+5=55 Schfifty Five's Avatar
    Join Date
    Jun 2006
    Posts
    698
    Looks good so far, but I think you should make all the towers/enemies/other things bitmaps so it'll run faster... also, it'd look better if the towers were depth-sorted - right now if you place one right behind another one, the tower in front has sand on it.

    Good luck with this

  6. #6
    It's true..I brought sexy back smith1302's Avatar
    Join Date
    Sep 2005
    Location
    here
    Posts
    343
    Thanks glad you liked it! something fun about watching stick figures fight.
    Hey check out my arcade sites!
    Ninja Games | WW2 Games

  7. #7
    Now tell me whos watchin...... samvillian's Avatar
    Join Date
    Feb 2007
    Location
    Where do you live?
    Posts
    539
    great idea, age of empires ROCKS..... playing theme song in my head right now.

  8. #8
    Script kiddie VENGEANCE MX's Avatar
    Join Date
    Jun 2004
    Location
    England
    Posts
    2,590
    I live by Age of Empires II: Conquerors. Anyone on FK want to do a Deathmatch sometime? I have Windows and Mac versions (preferably Mac, because my PC has no sound).

    Making a Flash tribute of AoE II sounds quite fun to me, maybe I'll give it a go. I've certainly covered enough on the optimization front, but group pathfinding looks pretty hard.
    http://www.birchlabs.co.uk/
    You know you want to.

  9. #9
    Style Through Simplicity alillm's Avatar
    Join Date
    Mar 2004
    Location
    Wales
    Posts
    1,988
    Yea and the general AI is even harder. You don't want to attempt a full blown RTS unless you are extremely committed. I would say they are up there with MMORPG's in terms of production difficulty.

    With that said, I wouldn't discourage anyone from having a go. I would love to play a real flash RTS. Still waiting on mr malee, not sure if he’s still working on his though.

    Smith - Really promising start there, I'm looking forward to seeing where you take it.

    Ali

  10. #10
    It's true..I brought sexy back smith1302's Avatar
    Join Date
    Sep 2005
    Location
    here
    Posts
    343
    ahh, theres a big glitch =[ if you put a bunch of towers together youll notice only one tower shoots at a time.

    [edit] I got it so the towers can shoot at the same time but now each one shoots like 1-4 arrows each time.

    its gunna be a long night..
    Hey check out my arcade sites!
    Ninja Games | WW2 Games

  11. #11
    It's true..I brought sexy back smith1302's Avatar
    Join Date
    Sep 2005
    Location
    here
    Posts
    343
    ok im going to ask you guys for help.
    The code below controls the towers facing the enemy and shooting
    "dub = function" is just the towers enterframe.

    Code:
    function moveBullet() {
    	if (this._x > Stage.width || this._x < 0 || this._y < 0 || this._y > Stage.height) {
    		this.removeMovieClip();
    	} else {
    		var dir = (this._rotation > 180) ? -1 : 1;
    		this._y += (this.spd * Math.cos(mPI / 180 * this._rotation)) * dir;
    		this._x -= (this.spd * Math.sin(mPI / 180 * this._rotation)) * dir;
    		for (var i = 1; i <= numofEnemies; i++) {
    			var myEnemy = this._parent["k" + i];
    			if (this.hitTest(myEnemy)) {
    				myEnemy.health -= zunn.damage;
    				_root.money += 2;
    				this.removeMovieClip();
    				break;
    			}
    		}
    	}
    }
    //
    //find distance between gun and bad guys and faces them
    dub = function() {
    	for (d = 1; d <= numofEnemies; ++d) {
    		var bad = _root["k" + d];
    		var x_cord = this._x - bad._x;
    		var y_cord = this._y - bad._y;
    		bad.currentDistance = Math.round(Math.sqrt(x_cord * x_cord + y_cord * y_cord));
    		if (bad.currentDistance < range) {
    			if (isFiring) {
    			var tic= this._parent;
    			var myBulleta = tic.attachMovie("bulletMC", "b" + bc++, tic.getNextHighestDepth());
    				myBulleta.spd = 30;
    				myBulleta._rotation = this.turret._rotation;
    				myBulleta._x = this._x;
    				myBulleta._y = this._y-15;
    				myBulleta.onEnterFrame = moveBullet;
    		}
    			cbad = bad;
    			var zunn = this;
    			var ax = (this._x+this.turret._x) - cbad._x;
    			var ay = (this._y+this.turret._y) - cbad._y;
    			var angle = 180 * Math.atan2(ay, ax) / Math.PI;
    			this.turret._rotation = 90 + angle;
    			if(!pause){
    			if(shot_timer==0) {
    			isFiring = true;
    			}
    			}
    		}else{isFiring = false;}
    	}
    	if(shot_timer > 0) {
    		isFiring = false;
    	}
    	++shot_timer;
    	if (shot_timer>delay) {
    		shot_timer = 0;
    	}
    }
    Previously I had the "if (isFiring){}" part out the _root.enterframe timeline but it only show from one tower at a time. Right now with the code above it is shooting but its shooting one arrow correctly (rotation is the same as the turret) but 4 others shoot out towards enemies. while the turret is facing the other way. Anyone got any ideas?
    Hey check out my arcade sites!
    Ninja Games | WW2 Games

  12. #12
    It's true..I brought sexy back smith1302's Avatar
    Join Date
    Sep 2005
    Location
    here
    Posts
    343
    okay I fixed it =]. I dont know how or why it worked but it did. Could anyone explain why what I did worked compared to the code above?

    Code:
    dub = function() {
    	for (d = 1; d <= numofEnemies; ++d) {
    		var bad = _root["k" + d];
    		var x_cord = this._x - bad._x;
    		var y_cord = this._y - bad._y;
    		bad.currentDistance = Math.round(Math.sqrt(x_cord * x_cord + y_cord * y_cord));
    		if (bad.currentDistance < range) {
    			cbad = bad;
    			var zunn = this;
    			var ax = (this._x+this.turret._x) - cbad._x;
    			var ay = (this._y+this.turret._y) - cbad._y;
    			var angle = 180 * Math.atan2(ay, ax) / Math.PI;
    			this.turret._rotation = 90 + angle;
    			if(!pause){
    			if(shot_timer==0) {
    			isFiring = true;
    			}
    			}
    		}else{isFiring = false;}
    	}
    	if(shot_timer > 0) {
    		isFiring = false;
    	}
    	++shot_timer;
    	if (shot_timer>delay) {
    		shot_timer = 0;
    	}
    			if (isFiring) {
    			var tic= this._parent;
    			var myBulleta = tic.attachMovie("bulletMC", "b" + bc++, tic.getNextHighestDepth());
    				myBulleta.spd = 30;
    				myBulleta._rotation = this.turret._rotation;
    				myBulleta._x = this._x;
    				myBulleta._y = this._y-15;
    				myBulleta.onEnterFrame = moveBullet;
    		}
    }
    I just moved the if(isFiring){} part to the very end. of the script. It only works at the end not the beginning.. I dont know why.

    PS: sorry for doing 3 post in a row, the edit mode went away =[
    Last edited by smith1302; 10-05-2007 at 10:17 PM.
    Hey check out my arcade sites!
    Ninja Games | WW2 Games

  13. #13
    Now tell me whos watchin...... samvillian's Avatar
    Join Date
    Feb 2007
    Location
    Where do you live?
    Posts
    539
    just wanted to point out, nice signature smith..... looks like my watchamacallit near my avatar. title? iono... sorry for randomly posting... nice game again. aoe2 rocks

  14. #14
    It's true..I brought sexy back smith1302's Avatar
    Join Date
    Sep 2005
    Location
    here
    Posts
    343
    lol i didn't do it on purpose, I just added it when I saw that commercial, Ill go change it

    -anyways Ive updated the game a bit, I added a money system, and a building where you can upgrade your towers and your infantry. And I have added castle health but the graphics that shows the castle once its destroyed is just temporary. Im planning on making about 25 levels with about 10 different enemy types. I have 5/10 done already.
    Also is the money ratio per kill good? Like do you get too much money that makes the game very easy or not enough money.
    Hey check out my arcade sites!
    Ninja Games | WW2 Games

  15. #15
    Script kiddie VENGEANCE MX's Avatar
    Join Date
    Jun 2004
    Location
    England
    Posts
    2,590
    Quote Originally Posted by smith1302
    lol i didn't do it on purpose, I just added it when I saw that commercial, Ill go change it
    Eh? 'Bow Chicka bow-wow' is from Red vs Blue. The Lynx advert pretty much just plagiarised it.
    http://www.birchlabs.co.uk/
    You know you want to.

  16. #16
    It's true..I brought sexy back smith1302's Avatar
    Join Date
    Sep 2005
    Location
    here
    Posts
    343
    Red vs blue? Ive never heard of it.. Imma go google it.

    ok back on topic now.
    Hey check out my arcade sites!
    Ninja Games | WW2 Games

  17. #17
    M.D. mr_malee's Avatar
    Join Date
    Dec 2002
    Location
    Shelter
    Posts
    4,139
    Quote Originally Posted by alillm
    With that said, I wouldn't discourage anyone from having a go. I would love to play a real flash RTS. Still waiting on mr malee, not sure if he’s still working on his though.
    Its always there, I have finally got the abstraction to work with weighted maps with enough accuracy to fool the average person, and a single search time around 0-3ms . But there is still no flocking/ collision detection queuing or anything like like which helps to add realism. For that I will need to develop a quad tree .Counting on polygonal labs or my lazy arse going out and buying a book on them.

    Actually I gots free time today time to dust off the ol RTS Game Development thread

    EDIT - smith, the game no longer exists at that page?
    Last edited by mr_malee; 10-07-2007 at 08:24 PM.
    lather yourself up with soap - soap arcade

  18. #18
    It's true..I brought sexy back smith1302's Avatar
    Join Date
    Sep 2005
    Location
    here
    Posts
    343
    Yea Im looking forward to see the game your talking about mr malee. Sounds interesting..

    Try this link:

    www.freewebs.com/smith1302
    Hey check out my arcade sites!
    Ninja Games | WW2 Games

  19. #19
    It's true..I brought sexy back smith1302's Avatar
    Join Date
    Sep 2005
    Location
    here
    Posts
    343

    Update 3

    Okie dokie... Ive updated it again

    www.freewebs.com/smith1302

    Changes
    - The design for the main menu is up.
    -Ive made a tutorial ( tell me if it is clear to understand please)
    -Ive made it so you can see what unit your making when you drag it.
    -Ive added a message so you know when a new wave begins and ends
    - I put up a # of kills counter.

    Tell me what you think of it so far.

    Things Im working on now
    - The ability to shoot arrows from your tower using your mouse ( so you can be involved in the game)
    -More enemies
    -More upgrades
    -Music!

    Does anyone know of any good programs to make loops?
    Hey check out my arcade sites!
    Ninja Games | WW2 Games

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center