View Full Version : Rts
Opera_Ghost
11-12-2007, 09:00 PM
Great news everyone I have fineshed my first game!
(for those who dont know it was a platform game)
And now I have a fairly good understanding of actionscript, how ever now that I have fineshed my platform game I want to start the real reason I got into Flash my very own RTS.
Iv got good ideas on how im going to do most things, but there are still somethings I need help with. The first thing is clicking a unit and getting him to move where I want him to.
If anyone could help that would be grand :D
jefgibso
11-12-2007, 10:12 PM
Sorry, silly q: Do you mean Realtime Strat Game?
If so I'm sad to say you really have your work cut out for you. Even fairly simple turn-based games get tricky fast when it is multi-player. I will put together a simple flash movie to try answer your q.
Meantime, can you tell me more about you RTS?
jefgibso
11-13-2007, 12:41 AM
Ok, please check out this file. I created a simple flash movie with a movieclip that rotates towards mouseclips and glides to the clicked location.
Let me know if this helps at all...
Opera_Ghost
11-13-2007, 06:59 AM
lol ya its a strat iv always wanted to make one. My game is like Starcraft but only has a human race (for now) at the moment all I want is the select units like pesants (SCV as a starcraft refrence) then build a farm thing (supply depo) I dont need any enermys or any thing just yet im taking baby steps for now.
emergency_pants
11-13-2007, 10:33 AM
I think you're going to need a good path finding algorithm if you're going to have obstacles and such. I think someone has created an A* one for actionscript because I had it in a book... I think it was "Macromedia Flash MX 2004 Game Design Demystified". No doubt you'll find it with a web search... here are some results I found:
http://www.policyalmanac.org/games/aStarTutorial.htm
http://en.wikipedia.org/wiki/A*_search_algorithm
http://www.tonypa.pri.ee/tbw/tut22.html
http://www.footloosemoose.com/michael_wp/2005/11/28/my-a-pathfinding-in-flash/
Good luck.
jefgibso
11-13-2007, 03:04 PM
Opera_Ghost, GL indeed. I hope you update this thread when you're finished so we can see your game. It sounds like a cool idea. I'm a big StarCraft fan so I wish you luck ;)
Opera_Ghost
11-13-2007, 08:17 PM
thank you all for your support, ill have to show you when im done. And if I have anymore problems ill let you know.
Hey does anyone have any simple pathfinding tutorilas? If not ill just use the link given by emergency pants.
SilverSabre
10-24-2008, 11:21 AM
Myself and few friends are intrested in making an RTS. We found a site with some awsome stuff on it, 'cept theres one problem. Its all done in flash 5 (which is AS1, right)
http://www.tonypa.pri.ee/tbw/tut01.html
The important bits that I woudl look at are:
Why Tiles? through to More Tiles
Scrolling, More Scrolling, Isometric View (for that cool look), Mouse to move
AND THE TRICKY BIT!!
Pathfinding and More Pathfinding
If someone wants to have a look at these, I think they are a very good system (using tile based motion). You you do use them, please Email me with any converstions of the code into AS2 or AS3. Email me at jimmyduncan@ live.com.au (theres a space in there to stop scripts nicking my email.
BTW: the pages are int he menu down the lefthand side of the webpage throught he link i set
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.