View Full Version : Testing: RTS game
Kal_Larro
12-09-2009, 03:05 PM
This is my first attempt at making a RTS game with alice. After hearing Mr.X state that no one has really done one of these it is now my personal goal to finish one. So far only the wizard is functional. To start off you click on your party them click on the castle to produce troops. The castle has ten within it and no more can be produced unless one dies.
The red ones are builders who... Build things. Once you have a builder click on one of the flags to build a structure. To win you must be able toi build a grand pyramid (the center flag) while not letting your castle be destroyed
NOTE: To build a structure click on a flag while a red builder is out.
Things it has:
Builders and Gold harvesters complete. Gold harvesters are yellow and create gold when near a tower (the structure to the right of the main castle)
Tower and gold replenish complete.
Castles health and wizard count and initial gold amount complete.
Building the armory
Fighters and heroes.
Health for each individual troop
Things it needs:
Building the pyramid
Enemies and their health and coding
The other three factions and all that coding -_-.....
And many many more things.
If anyone has anything to add please feel free to do so.
x2495iiii
12-09-2009, 03:15 PM
Guess I'm Mr.X, eh?
Good to see your ambition. If you have any problems with your world or need help with a concept or a bug, let me know.
Kal_Larro
12-09-2009, 04:01 PM
Yes you are the elusive Mr.X. Honestly one of the things i have been struggling with is spawning more troops. The world is limited to ten at the moment and i would love to see a method that spawns more the more you click on the main castle (though i could simply add more to the array and list and create more troops i would prefer a spawn.)
Another headache i see in the near future is replicating the code for the other four villages -_-... Is there a faster way to do that?
dubastot
12-09-2009, 05:38 PM
You forgot about my RTS so I guess your not the first after all. Well good luck making the 2nd RTS game on Alice community.
x2495iiii
12-09-2009, 06:37 PM
Technically, we're talking about the first FULL rts game, remember I actually said several have started, none have finished. You guys are in a race to complete one (gotta say I'm interested to see who wins, hehehe...).
dubastot
12-09-2009, 06:55 PM
I bet he's gonna win because I won't be working on mine until way after New Years because I am going away and have lots of work right now.
Mr. Nobody
12-10-2009, 11:36 AM
anyone got a good fps besides resident penguin rail shooter modernwarfare and basically all the fps on this site
x2495iiii
12-10-2009, 12:16 PM
So are you saying you don't like what's on the forums, or you're just looking for something else, something that hasn't been done yet?
Kal_Larro
12-10-2009, 04:25 PM
Yeah I'm kinda confused by your request. since you don't want anything on this forum I'm going to recommend Resident Evil 4.... no wait that wasn't a FPS... Halo's a really good one if you want variety in weapons and enemies and you can't forget Half Life. Now back on topic Mr.X do you have any suggestions for the problems i mentioned earlier?
dubastot
12-10-2009, 10:14 PM
Sorry Mr. Nobody, but this is not exactly the right place to asking this question, you should really be asking this in maybe the questions and comments section. The title of this thread is RTS Game
x2495iiii
12-10-2009, 11:57 PM
Spawning objects is unfortunately impossible.
What exactly do you mean by "coding for the other villages?"
Kal_Larro
12-11-2009, 01:52 PM
Well the coding for just the wizard village is... Tremendous to say the least.It was all trial and error for the most part and I want to know if it were possible to make the code for the wizard village the same used for other villages (the god village, the zombie village etc.).
Another problem I've encountered recently is that when the Gold Count reaches a certain level it needs to say something along the lines of "There are now new purchases available." i tried doing an infinite if/else loop but it just kept saying it over and over once it reached that point, I need to know how to make it stop.
NOTE:Here's the newest version.
x2495iiii
12-11-2009, 02:43 PM
In the case of the gold, I find it helpful to use a "When a variable changes" event which checks to see if the gold is greater than or equal to that certain amount you checked for. Now, to prevent it from saying it twice (like if they bought something, then earned enough gold to reach that level again), you could have a boolean variable which sets to true and have that if statement also check to see if the boolean value is true.
As far as reusing code goes, if the villages perform similarly enough, sure they can be reused. I copied the code for the one big one in RP3.1 to make the code for the skulltulla in RP3.5.
Kal_Larro
12-15-2009, 02:31 PM
Thanks for the advice. I was able to use similar codes many time over now saving me quite a bit of headache. The wizard village is nearing completion, please test it out and share your thoughts.
dubastot
12-28-2009, 09:07 AM
Here is my RTS game. I was wondering if someone could help me optimize the code because it runs a little choppily.