Turn Based Strategy (like Advance Wars) - DevLog

Show us your completed creations made in Construct 2

Post » Fri Aug 16, 2013 4:34 pm




This is the very early beginnings of a TBS game like Advance Wars.

The demo can be found here.

Right click to reset map.

Left double click on a unit to see its path. No actual movements yet.

The highlighted path indicates all the possible routes the unit can move.
This is calculated by having a certain amount of action points per turn which is reduced by the cost of each terrain type it will travel over during the journey.

This is different for each unit, for example Tanks can't go through woods or up mountains so the cost of that tile is above the max action point (obstacle), but they are fast over grass and up hills so they only incur -1 cost when traveling over that square. Soldiers travel -1 over grass, and -2 over woods etc. You get the idea.
B
43
S
23
G
20
Posts: 735
Reputation: 12,027

Post » Fri Aug 16, 2013 11:28 pm

Advance wars was great so I'll be keeping an eye on this! :)
B
9
S
1
Posts: 14
Reputation: 532

Post » Fri Aug 16, 2013 11:37 pm

Solid work! There aren't enough games like this, and I'm excited to see where you take it.
B
35
S
9
G
4
Posts: 201
Reputation: 5,170

Post » Sat Aug 17, 2013 7:22 am

Advance Wars is one of my favorite games of all time! I was planning to make a game similar to this one, but I still have a lot to learn. I can definitely help you create the game. Just let me know if you need help with the graphics or sound effects.

Here is a preview of my work:

https://www.dropbox.com/sh/aobt89swgxvkoe2/TeQmZDJxEr
B
12
S
4
G
1
Posts: 100
Reputation: 2,362

Post » Sat Aug 17, 2013 11:00 am

Thanks for the replies guys.

Heres a quick updated test 2.



Each unit now has a cost to fire.
The yellow path area shows where the unit can move to but can't fire.
The green path shows the area where the unit can move and still fire. So you can move further but sacrifice the ability to attack or move less and attack.

Also Each unit now has 1 terrain type where they will get an attack and defence bonus whilst on that square. This for the moment is represented by the circle. For example soldiers can hide in woods for a defence bonus or attack in woods where theres cover. Tanks get an attack and defence bonus on hills.

B
43
S
23
G
20
Posts: 735
Reputation: 12,027

Post » Mon Aug 19, 2013 11:13 am

Added the ability to choose a path and view the route before you ok it.




Test 3 here.

It was a little bit more tricky than i first thought because i have to manually work out the angles and also insert the corner sprite images based on the angle of the current point in the path and the last point in the path.

Next up moving the unit.

B
43
S
23
G
20
Posts: 735
Reputation: 12,027

Post » Mon Aug 19, 2013 11:25 am

Oops, just noticed a bug where the arrow path sometimes ignores the terrain costs. I'll look at that.
B
43
S
23
G
20
Posts: 735
Reputation: 12,027

Post » Mon Aug 19, 2013 2:57 pm

The bug is more serious then i thought. I did a number of tests and my code checks out ok.

It seems to be a problem with Astar Pathfinder which i'm using thats ignoring cell costs on occasions.

Heres an example.



The path above is correct. The tank unit has a cost of 100 for moving over woods and mountains. It only has a cost on 1 for moving over grass and hills. There for it has picked the quickest route available.



Yet the square below has generated a false path. I checked the cost of squares from aStar pathfinding expressions so i know they are indeed a cost of 100, yet for some reason it has chosen a route with a total cost of 104.

I'm afraid with this bug i might not be able to continue.
B
43
S
23
G
20
Posts: 735
Reputation: 12,027

Post » Mon Aug 19, 2013 6:25 pm

This is a very interesting project - I hope you keep at it. Thanks for showing all the pictures that help illustrate your game. I loved Advanced Wars series, so really hope you continue.
B
33
S
7
G
8
Posts: 312
Reputation: 8,528

Post » Mon Aug 19, 2013 8:05 pm

Thanks Manley.

Unfortunately i have no way around the bug. It's a 3rd party object and i don't think 00Rez updates.

The only other option is to recode the game with the official inbuilt pathfinding behaviour. I've had a play around with it today and have it working on a grid but i can't understand how it handles costing. For it to have any effect i have to set it to a value of around 100 or else it just seems to ignore it completely, which presents a problem at the moment.
B
43
S
23
G
20
Posts: 735
Reputation: 12,027

Next

Return to Completed Creations

Who is online

Users browsing this forum: No registered users and 3 guests