Free Code

Focusing on Code and not Graphics

Node Path-Finding Game Engine

This template/turn-based game engine will give you all the necessary tools and resources to make your very own turn-based games just like the well known game: XCOM. Note: there is only one plugin, “rexContainer” , and everything else is made from events in construct 2. You can take the bit you want as well, so if you just want the path finding, then just delete the rest and keep the path-finding.

OK, let me bring out the bad news first, this new template will not be free like the other templates as I worked on this one for a couple of months šŸ˜¦Ā  But don’t worry, It will be sold for only $5 on the Scirra store

Now that we have got the bad news out the way, its time to dive into the content of this parcel:

  1. Node-path-finding. This template has a built in 2 ways. (one suitable for small grids only, about 5×5 grids | and other for infinite grid size) Note: Each will take a few seconds to draw(thus included a loading percentage).
  2. Obstacles, There is an option to make a obstacle that acts as cover(just like in XCOM) or just as an obstacle to block movement.
  3. AI control, This template will also include AI control as you probable noticed in the example. The AI has 3 options built in: run for cover, attack, move to nearest enemy. Note: you can add your own combinations and AI gameplay.
  4. Turn process, The player will keep choosing the next unit after the energy is used in current unit. Once the whole team has used it’s energy up, The next team would begin. Teams work on a number system, thus adding 3 teams are quite simple.
  5. Animations, For the directional purposes(which way the unit is waling, attacking), there is a special variable designed for this making it easy to get the right direction. Special effects like: muzzle flash, blood is an easy add-on
  6. Extra info, Attack strength, Health, movement speed,turn energy, etc… can all be added/edited easily to the game with only a few clicks.
  7. Compares with XCOM,Ā This template was made to match XCOM gamplay, thus gives the player a walk/dashing grid gameplay style. As well as canceling a turn after a unit attacks(whether or that unit has energy left) taking cover. Players are also able to skip/end a unit’s turn.

This template can be easily copied to one of your already games as there are only 3 event sheets. Make sure that you copy the 1 or 2 global variables first. If you require any help feel free to ask as I will be happy to assist. Some YouTube tutorials will be made to assist on this topic as well in the near future. You can purchase this for a learning experience.

This template is not yet available on the Scirra store as I would like to know if you guys are interested in this template. Please comment down below or on the demonstrationĀ page. Thank you.

Demonstration