[On Hold] Fire Emblem / Advance Wars-like game

2 favourites
From the Asset Store
Source file (commented event sheets), art and all music included and 100% royalty free.
  • Example gameplay:

    Subscribe to Construct videos now

    Hi guys! It's been a long time that I worked on anything, but for the last 5 days I've been working on an engine that works like the GBA games Fire Emblem or Advance Wars! I've been building this in Construct 2 actually because I have that business license for it and I don't need C3 to accomplish anything fancy for now, but might switch over to it in the future.

    I decided to start by tackling the two hardest things of these games (in my opinion): Grid-based movement and the enemy AI.

    Right now I've used the grid-based movement based on Magistross's old post here: https://www.construct.net/en/forum/game-development/game-development-design-ideas-25/simple-grid-movement-128763?kws=

    I think without that example, I'd still be pretty stuck on figuring out how to move units around, so many many thanks! I heavily tweaked it to include other units "blocking" the path, attack range (wip still), etc.

    The elephant in the room to all SRPGs, JRPGs, etc, is the enemy AI. For now my AI is relatively simple, it tries to find the lowest HP unit, move next to it and attack it. In the video, you can see that it moves initally to the 1 HP unit, and that unit turns "yellow" to signify its the one being attacked. Then I reload the page, and you see the 1 HP becomes 10, so the AI targets the 2 HP unit which also becomes yellow.

    Subscribe to Construct videos now

    Would love to hear any feedback! It's still in the early phase but I'll try to post significant updates when I make more progress.

    BTW! If you're interested, I'm the guy who made that game Pixel Bear, which is on the arcade. Its a totally different direction considering its a platformer like Kirby or Mario, but yeah some shameless promotion so go and check it out!

    https://www.construct.net/en/free-online-games/pixel-bear-adventure-904/play?via=mh

  • Made some significant progress with melee ranged AI and their movement. Now they really move identically to FE / Advance Wars, and try to attack the lowest HP unit in their range.

    Subscribe to Construct videos now
  • Waouh ! I tried several times during this year to reproduce this type of gameplay without success ...

    Would you mind sharing your code?

  • Now I've got ranged attackers, they check (for now) 2 tiles away from the unit they're targeting. Again if they cannot find a place, they'll move to the next unit or just give up if there's nothing.

    Btw, if you're wondering "why are the computations so slow to find a tile?", they're not, I'm purposefully slowing them down to 0.5 seconds. Normally it checks all the tiles around 1 unit in milliseconds then moves on, all enemies will either move or just sit there in under 1/2 second or less.

    Subscribe to Construct videos now
  • Waouh ! I tried several times during this year to reproduce this type of gameplay without success ...

    Would you mind sharing your code?

    Domino99 I'd rather not give out my project for now, but I'd be happy to help by answering questions where you're stuck...

    I'm literally using the grid-movement from the examples found here: https://www.construct.net/en/forum/game-development/game-development-design-ideas-25/simple-grid-movement-128763?kws=

    For the AI all I'm doing is essentially creating the grid from that example based on a unit's movement range +1 (or now +2 for range attackers), mark all the player's units with a separate sprite, then loop through all the players with that sprite ascending by their HP from lowest to highest and checking the tiles around them if there is a place to move to :)

  • Ok thank for your help ! I will try to archive that :)

  • I've added more calculations for both the melee and ranged enemy AI.

    For melee, they will first check if they are already on a tile next to the lowest HP player unit, then if they're not check if they can at least move to a tile next to them. After that, its the same exact checks with the second lowest HP unit, and so on.

    For ranged, its the opposite behavior and on purpose. First they will check if they can move to the lowest HP unit, even if they were already in range. This is to open up tiles for other range units if they start to clump on maps eventually.

    Subscribe to Construct videos now
  • Have you looked into influence maps?

    Here is a good read.

    http://gameschoolgems.blogspot.com/2009/12/influence-maps-i.html

  • Have you looked into influence maps?

    Here is a good read.

    http://gameschoolgems.blogspot.com/2009/12/influence-maps-i.html

    mOOnpunk thanks! I read most of it and will read the rest later. :)

    At some point I might need to actually add some "weights" on how the AI thinks and moves based not only on HP, but other factors. For now having the AI move to and attack the lowest HP player unit is fine, but yeah taking into account how much damage they'll do, how much damage they'll receive in a counter attack, etc, is definitely imporant.

    There is also one more important thing to consider however: the game shouldn't be impossible. In fact, the AI sometimes should do something we'd consider "stupid". If the AI knows and plans every single movement and attack perfectly, I don't think the player will have much chance to actually win. I'd imagine some of the game's audience could be new players to the genre as well...

  • Finally started working on the player's phase. I now have a simple player and enemy phase, meaning the certain units can only move and act on their phase. I also added logic to show where the player can move and red tiles to show where they can attack enemies. I haven't tested with the player's ranged units just yet, but should potentially work out of the box.

    Subscribe to Construct videos now
  • Subscribe to Construct videos now

    Added some nicer looking graphics I bought because the template ones and the circles are fugly :)

    Player units can now move around a bit, they cannot "attack" yet but a red tile is displayed when an enemy is in range.

    Subscribe to Construct videos now
  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Now I have a fully working enemy phase, the units will attempt to move and attack the nearest player unit, and after all units have moved, it becomes the player's phase. Another thing I added was a very fugly placeholder for the battle screen. It's kind of like Fire Emblem or Advance Wars, when the units start fighting a different "pop up" screen appears above the battlefield. Notice how in the video the red guy always goes first, the red is an enemy in this case and blue the player's unit.

    Subscribe to Construct videos now
  • Smaller update for today, I added the logic for enemies to try to move to the player's "Lord unit" if they cannot attack anything else nearby. Also some behind the scenes work of fixing a bug with the AI, it would kind of freak out if 2 player units were next to each other.

    Subscribe to Construct videos now
  • Compared to handling the AI, implementing the player unit's actions was easy enough. I've for now added only 3 things the unit can do: move, attack (if possible) or wait. In the future I will add the ability to cancel the move (teleporting the unit back to its previous X/Y position before it moved) as long as the player doesn't lock in the decision to wait or attacks something.

    Subscribe to Construct videos now
  • Do you planning to add visual pathway as route guide?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)