![]() |
Basic attack simulator. - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Frictional Games (https://www.frictionalgames.com/forum/forum-3.html) +--- Forum: Off-Topic (https://www.frictionalgames.com/forum/forum-16.html) +--- Thread: Basic attack simulator. (/thread-18251.html) |
RE: Basic attack simulator. - Ghieri - 09-11-2012 Thanks. Ok, so now I have some random variation to the attacks(so it's more organic), also there's a 20 percent chance of 2x damage modifier(Critical hit) being applied. Right now, there is no combat balancing, I'm just trying to get the code working. Trying to keep it modular so I can add new things later. @Kreekakon: Actionscript 3. RE: Basic attack simulator. - Ghieri - 09-11-2012 Screenshot: ![]() Updates: -"Defend" and "heal" options. Both take up a turn. -Heal restores 1/3 health. -Defend negates damage for that turn. Can easily be changed to just reducing it. -Enemy can now uses the same damage code that the player does(As opposed to simple subtraction.) Can now do critical hits. -Interface is changed(I LOVE how I can just move stuff around and flash doesn't even care.) Soon: -Enemy may use heal and defend options. -Rudimentary AI. -Optimize code, so I can add more stuff easily. @Traggy: If you have a problem with this thread, would it be ok if I linked to another thread before you locked it here? RE: Basic attack simulator. - Ghieri - 09-11-2012 Enemy now heals one HP point per turn. This was just a test of my new Heal method, which can be used by both sides now. This actually made the enemy pretty OP, but beatable(Yeah, with maximum weapon settings, haha.) It's actually kind of fun now. I'm working on overhauling the code to make it coder-friendly, this is to make AI programming much much simpler. EDIT: Monster is capable of everything player is now, has a weighted choice system, and is annoying as hell to beat because he keeps healing. DX The only thing monster doesn't have is weapon modifiers. RE: Basic attack simulator. - Ghieri - 09-12-2012 Moral of this story, kids? If you write an AS3 project that is going to be longer than 100 lines, start by writing your class FIRST. Now I have to overhaul all of my code to support an OOP approach to make everything a hell of a lot simpler in the future. Shoot me. RE: Basic attack simulator. - Ghieri - 09-20-2012 Hello. This project isn't dead. Just annoying. Anyways, the code is on it's way up to full running order, but here's a list of things I could do with the new structure: -Party system -Utilizing XML to read in data sheets for monsters and players. -Easily add new content. It's a work in progress, but it's going to be pretty sweet when it's done. RE: Basic attack simulator. - Melvin - 09-20-2012 (09-10-2012, 04:12 AM)Zaffre Wrote: NO JUMPSCARE NO FUN*looks at avatar picture* Dude what eyes. RE: Basic attack simulator. - Ghieri - 09-22-2012 Alright, I got it working again, so I feel it's time to post a pre-alpha, because I need feedback on it to decide what to do next. Keep in mind there isn't much gameplay. You can choose between 3 different actions. https://dl.dropbox.com/u/25772184/Demos/BattleSim.zip Please give feed back on the following ![]() -How intuitive the learning curve. It's only 3 actions, but the mechanics are slightly more complicated. Is it easy to navigate the interface? -Are the actions balanced? Should any of them be tweaked? Should any of them be removed? -What features would you like to see? What kind of gameplay would you like to see this a part of? RE: Basic attack simulator. - Ghieri - 09-26-2012 ![]() I can now edit the monster's stats... in XML!!! I can also have multiple monsters now(There are two, the one in the picture is named bob. Bob is overpowered.). Thanks to the way I wrote the code, I can also have these implemented shortly: -XP items. -loot tables, ranging from generic to pristine. -Player stats. -inventory and weapon system. I've been wanting to do a party system, which would require slightly rewriting the code because it's only built to handle one-on-one. I <have> added other enemies and gotten them to work alright, but they didn't have their own health bar(pretty much invisible) and the AI rolls are done locally, not in the pawn class I have set up, which will need to be fixed. It will take a lot of work, but will probably be one of the next features I implement. RE: Basic attack simulator. - darkadders - 09-26-2012 and thus, pokemon was created. jokes asside, so far this looks pretty awesome ![]() RE: Basic attack simulator. - Unearthlybrutal - 09-26-2012 Looks quite good ![]() I've created quite same looking "game" (with Visual Basic) and it has "shop" feature and much more. Link to more information. Anyway, good luck with your project! ![]() |