Page 2 of 2

Re: Defense Art Topic!

PostPosted: Wed Dec 07, 2011 7:31 pm
by jimmynewguy
Jagmaster wrote:
untitled.PNG

By modular, I mean having the castle larger and broken into sections, each with it's own "Damage variable". That way the imps or whatever could try to break into a wall or something and you'd have to repair it.

Ohhh, good idea! I'll keep it in my head :)

Re: Defense Art Topic!

PostPosted: Thu Dec 08, 2011 1:00 am
by jimmynewguy
Update: Knight! Archer! (looks weird in a strip, but the animation looks decent in action actually! Feel like I'm getting the hang of cheesy small people! :)) Edited the imp to not have a shield and the worker 1 pixel so his head wouldn't be a block :lol:

Re: Defense Art Topic!

PostPosted: Thu Dec 08, 2011 6:00 pm
by SuperSonic
Dude, that looks nice :wink:

Re: Defense Art Topic!

PostPosted: Thu Dec 08, 2011 6:19 pm
by jimmynewguy
Thanks! Looks like this sorta now, added the start of a hud, and draw select box. Worked on the coding for future stuff. All that. :)

EDIT: Wow! on a technical note, I think I actually programmed well for once. I had 200 workers on the field at once (which is 250 tiles that are randomly generated for a less boring look) and jumped the selection total up to 100 and moved them with NO LAG! I'm actually impressed with myself for once, not meaning to be boastful. Just excited! :) On a not so light note, this does not include AI so that will cause some slow down I assume

Re: Defense Art Topic!

PostPosted: Thu Dec 08, 2011 6:26 pm
by SuperSonic
Very interesting. I really want to see a demo soon haha :P

Re: Defense Art Topic!

PostPosted: Thu Dec 08, 2011 6:34 pm
by jimmynewguy
haha well I would but I'm having an issue with the ground when exported. It disappears when it exits the view? Weird. I'll keep messing with it :x

Re: Defense Art Topic!

PostPosted: Thu Dec 08, 2011 6:41 pm
by jimmynewguy
AHA! It was a GE bug. You're not supposed to be allowed to create actors on a create actor event, but it was hidden inside a for loop and GE didn't catch it. Good to know it's not a huge problem :)

EDIT: Here's a demo with the draw select and 200 workers to play with. Please excuse the 1 second delay between loading and when the grass shows. Was a simple fix, and won't be there in the full version. :) Oh, and with such a large group, the workers can go out of the view's limit. (wasd to move the view) But that will be fixed too

Re: Defense Art Topic!

PostPosted: Thu Dec 08, 2011 9:18 pm
by SuperSonic
That's awsome. You should make the color change more dramatic when you select a character though :wink:

Re: Defense Art Topic!

PostPosted: Thu Dec 08, 2011 10:32 pm
by jimmynewguy
SuperSonic wrote:That's awsome.
Thanks!
I changed the color change to be more dramatic. Also, the knight and archer can be selected and moved now as well. All their animations are down, too. :) Need to start thinking about music and sound effects now, not sure what to use to make sound effects as sfxr is the only thing I've used and it's overused. Too many indie games jumped on that :?

Re: Defense Art Topic!

PostPosted: Fri Dec 09, 2011 12:15 am
by SuperSonic
This site may be helpful(I havn't really looked at it much) :D
http://funplosion.com/free-assets.html

Re: Defense Art Topic!

PostPosted: Fri Dec 09, 2011 3:20 am
by jimmynewguy
Thanks :) I'm still trying to do everything on my own mostly though, so I'll probably just take ideas for music and such from there.

Re: Defense Art Topic!

PostPosted: Sat Dec 10, 2011 4:54 am
by jimmynewguy
Guess this is practically a devlog now :lol: . I made a blood effect for characters being hurt, also varied speeds based on character type. AI bugs are being worked out, right now the orc and imp chase and attack all 3 types of characters, the archer tries to keep a distance while maintaining an attack, the knight acts like the orc except for while "engaged in combat" and the player tells him to move he will flee instead of fight, and the worker flees from enemies. The biggest problem so far is the animations. So much can go on with the AI it doesn't seem to follow the basic "if I am attacking, I do not move. People stutter step along and face the wrong direction randomly :(. Characters also stay in-bounds of the map. Whew. AI is frustrating and has a lot of code. Guess I should've thought of that.

EDIT: AI works pretty well now! Check out this decent battle :D (there's no grass cause it takes a little longer to load and I tested a lot)

Re: Defense Art Topic!

PostPosted: Sat Dec 10, 2011 8:21 pm
by SuperSonic
This looks really fun. I should try to make an RTS sometime :D

Re: Defense Art Topic!

PostPosted: Sun Dec 11, 2011 3:00 am
by jimmynewguy
SuperSonic wrote:This looks really fun

Thanks, but it's pretty broken now. I'm remaking the whole everything since what I did lags too much when a lot of people are on the field. Looping through actors is cpu consuming and I shouldn't have done it that way. If you plan on making an rts, make sure to do the "unit id" way. DST always told me to do this and I never listened until now :lol: basically each unit gets an id number when it's created and all it's variables are stored in a units[][] 2d array. It's much faster to loop through numbers! :D