HOME | DD
Published: 2007-05-08 21:33:18 +0000 UTC; Views: 3934; Favourites: 5; Downloads: 120
Redirect to original
Description
This is a Real-Time Strategy engine I decided to try and make (in Flash, of course). Right now, I've got:Movement of a basic unit 100% done.
Minimap 90% done (subject to change/improve, but other than that it's 100%).
Layout 45% (Need to add: Selection Display)
Use the mouse to either click on 1 unit, or click + drag for a selection box. I've implemented an A* (a-star) algorithm for path finding, which works very awesome. To move, first select some units, click the 'move' button (on the 9 buttons, you'll see it once you select something). The cursor changes to the 'move' cursor, then just click a tile on the map.
Oh, black tiles are walls.
This is version 0.2, created by me (ssjskipp), and there's no point in stealing it quite yet, since I'm going to release it as a source code for anyone to mod (when it's done).
Based HEAVILY on StarCraft(c)
Related content
Comments: 34
VioletisBlue [2010-05-21 16:37:02 +0000 UTC]
Hey.
Just wondering if you ever ended up posting the code for this.
I've been thinking of doing something along similar lines, and I can't think of a working code to make an object actually move from point 'A' to point 'B'. I am able to have the object appear at my cursor location, but not move there. Make sense?
👍: 0 ⏩: 1
ssjskipp In reply to VioletisBlue [2010-05-21 17:50:21 +0000 UTC]
Try looking up A* and Dijkstra, or even Floyd for pathing.
👍: 0 ⏩: 1
VioletisBlue In reply to ssjskipp [2010-05-22 01:05:18 +0000 UTC]
I tried A*, but didn't get it. I fucking suck at math. I'll check the others out. Thanks.
👍: 0 ⏩: 1
ssjskipp In reply to VioletisBlue [2010-05-23 01:36:59 +0000 UTC]
It really has very little to do with math. It's more of procedural thinking... Very step by step. Look up Graph Theory and whatnot.
👍: 0 ⏩: 1
bmanatee [2007-05-24 04:20:33 +0000 UTC]
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
W
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
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WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
W
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
W
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
W
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
WOW
👍: 0 ⏩: 1
FlameReaper [2007-05-15 22:52:26 +0000 UTC]
Oh niiice. looks awsome. Reminds me of a similar engine i made. Although i got stuck at pathfinding and havent continued the engine since. Id love to see how you do the whole path finding around walls and stuff.
👍: 0 ⏩: 1
ssjskipp In reply to FlameReaper [2007-05-15 23:48:39 +0000 UTC]
Truth be told, I just searched the A* Algorithm, and since I do NOT believe in recreating the wheel, I used a script that someone pre-made (credit was given, and it was meant to be released). If I absolutely had to, I'd attempt to make my own, but I feel that using one that already works, and quickly, was my best bet.
👍: 0 ⏩: 1
FlameReaper In reply to ssjskipp [2007-05-16 11:53:20 +0000 UTC]
i see. fair enough. i think ill do some looking into it myself. thanks.
👍: 0 ⏩: 0
ssjjackass In reply to ssjskipp [2007-05-16 00:08:44 +0000 UTC]
haha, are you still working on it?
👍: 0 ⏩: 1
ssjskipp In reply to ssjjackass [2007-05-16 00:16:37 +0000 UTC]
Yeah, on the version I have here, I have multiple selection working almost perfectly (just need to get the pictures working, but multi-select works A+). Next is building stuff, then mining / gathering a resource of sorts, then some other unit commands (patrol, stop, etc), and finally attacking. The final version I release to the public will have the framework done, instructions on how to add units, add abilities, and just a synopsis on how everything is set up (although I doubt many people will even use it, I hope they can learn from it).
👍: 0 ⏩: 1
ssjjackass In reply to ssjskipp [2007-05-16 09:55:40 +0000 UTC]
Good on ya man. I plan to give all the .fla's of my games to my media teacher when I leave year 12 to show students etc.
Are you using as3? I'm not planning on learning as3, I'm going to start programming openGL or dx
👍: 0 ⏩: 1
ssjskipp In reply to ssjjackass [2007-05-16 13:09:53 +0000 UTC]
Well, I've got AS2 down. I WANT to learn AS3, but I also want to learn openGL as well. Besides, AS3 would be a good transition from AS2 to OpenGL, methinks.
👍: 0 ⏩: 1
ssjjackass In reply to ssjskipp [2007-05-16 14:19:38 +0000 UTC]
I can't be bothered learning AS3.
I wouldn't bother wasting time with as3 if your planning on learning OpenGL. Get started on some C++ tutorials and windows programming etc. That is if you plan to use C++?
👍: 0 ⏩: 1
ssjskipp In reply to ssjjackass [2007-05-16 17:11:55 +0000 UTC]
Yeah, I understand C++ pretty well, and it's formatted sorta' like Flash AS3, and AS2. The only thing about C++ is that I do not know how to make a visual thing...like, I guess I'm too used to flash where graphics and programming come hand in hand and can be applied with simple references.
👍: 0 ⏩: 1
ssjjackass In reply to ssjskipp [2007-05-17 08:07:15 +0000 UTC]
Yeah its completely different with C++, Flash is all built into one package. Whereas with C++, that is the language you choose to use for your project, but you must find other things like graphics engines etc. OpenGL is only graphics whereas directX is a package with graphics, audio, physics etc.
👍: 0 ⏩: 1
ssjskipp In reply to ssjjackass [2007-05-17 23:58:14 +0000 UTC]
Ah...yeah, I need to learn OpenGL. C++, Python, all those languages would be nifty, though....DirectX would be nice to learn too..
👍: 0 ⏩: 0
senfbeu [2007-05-09 10:03:18 +0000 UTC]
without even noticing it, I got stucked two of these things together, so that they both couldn't move anymore....
👍: 0 ⏩: 1
ssjskipp In reply to senfbeu [2007-05-09 19:07:18 +0000 UTC]
XD! Yeah, that was a placeholder for a "what if someone walks in front of me?" thing.
👍: 0 ⏩: 0
awesty [2007-05-09 06:35:59 +0000 UTC]
nice but you need to improve that A* pathfinding system One of the squares got stuck on one of the walls. It was on one of the corners.
👍: 0 ⏩: 1
ssjskipp In reply to awesty [2007-05-09 19:05:08 +0000 UTC]
Yeah, there's a few glitches I'll fix with the movement, but right now it's pretty awesome.
👍: 0 ⏩: 0
person333 [2007-05-09 06:33:54 +0000 UTC]
this is awesome!!, when will you release the code?
👍: 0 ⏩: 1
ssjskipp In reply to person333 [2007-05-09 19:04:35 +0000 UTC]
As soon as I finish the basics. I'll release the source pre-creation of AI (once I get systems working).
👍: 0 ⏩: 0
testicana [2007-05-09 01:29:13 +0000 UTC]
smells like an engine we'll exploit in the near future >:}
👍: 0 ⏩: 1
ssjskipp In reply to PeanutButterNinja [2007-05-08 22:37:59 +0000 UTC]
Thankies ! And thanks for the
!
👍: 0 ⏩: 1
PeanutButterNinja In reply to ssjskipp [2007-05-10 01:03:07 +0000 UTC]
no probleme, something like this deserves a favorite.
btw, i dont know if you like feedback or not but here are something things that arent working :
1. when you select a group of units and move them and you try to make another group selection while the previous units are moving, then there surounding square stays where it was at that moment.
2.pressing on m does not work to make them move.
3.if units are to close to each other, they wont move.
well, dont know if you like this kind of help or not, or if you already knew that these things didnt work to well (cause you did say you were still fixing stuff) but there you go, i hope it helps in any way shape or form
👍: 0 ⏩: 1
ssjskipp In reply to PeanutButterNinja [2007-05-10 01:59:22 +0000 UTC]
Heh, I knew of 1 (need to find out why >_>, 2 I haven't added yet, and 3 is fixed on the version on my computer (I'll upload it when I add more stuff)
👍: 0 ⏩: 1
PeanutButterNinja In reply to ssjskipp [2007-05-10 03:10:07 +0000 UTC]
sweet, keep up the good work, i didnt know that it was possible to do something this good on flash ^_^
(well, ok, i knew, but i imagined it being something very mroe complicated and you said it was easy(well, maybe not easy but easier then it might be(i need to stop talking)))
👍: 0 ⏩: 0
























