Skip to content
  • Story
  • Characters
  • Lore
  • Jobs
  • Combat
  • Features
  • FAQs
  • About

Dusk Tactics

2D Isometric Turn Based Strategy RPG

  • Story
  • Characters
  • Lore
  • Jobs
  • Combat
  • Features
  • FAQs
  • About

Dusk Tactics Engine: Flying 2D Isometric Movement

Avatar Posted by lou Posted on May 4, 2024June 27, 2024
0

Recently I decided to tackle flying-based movement. If you’re familiar with games like Tactics Ogre, you may recall everyone’s favorite hawkman: Canopus. There’s also the elusive Divine Knight class. What these have in common is they are winged humanoids and thus can both fly and walk.

What I always found fascinating was how winged units in Tactics Ogre would choose to travel across a given path. They default to walking, but if the path calls for it, they extend their wings and take off. Flying humanoids don’t stay flying, however, they need to land at the end of the path so their destination must be a walkable tile.

Anyway, borrowing the Divine Knight sprite from Tactics Ogre, I created a flying humanoid placeholder and began the arduous task of not only pathfinding, but also traversing this path correctly.

The gif to the left shows JUST the pathfinding. The unit visits each tile on the path, but does not correctly animate or transition between tiles.

You can sort of see the unit jump from node to node, or in this case tile to tile.

The Dusk Tactics Engine uses a modified indexed A* (A-star) algorithm, which is commonly used for tile-based maps.

Typically this is used with a single layer of tiles and while in this instance I did required a second layer, it’s sort of superficial so I didn’t need to make any large changes such as adding hierarchies.

The superficial layer that sits above the ground is called ‘airspace’ and is essentially an invisible tile above the ground tile that can only be traversed by units who have the flying movement type.

This simple step involved adding a new connection to each tile that connected it to the airspace directly above it. With that done, all of the airspace tiles were then linked together just like the ground units, connecting adjacent tiles and so on.

 


A few days of banging my head against a wall and I was able to turn this into something that actually looks somewhat decent.

Now that we had a way to retrieve paths for flying units, we need the unit to properly traverse it.

Before I go on, to understand movement in the Dusk Tactics Engine, you’ll want to read about how it was implemented: Dusk Tactics Engine – Unit Movement

Since we’re using 2D and faking a 3rd dimension, we had to employ some tricks to achieve a consistent depth sorting.

This was where it got difficult. Since the terrain is so varied, there’s no one size fits all solution. So I focused on two types of flight: vertical ascending/descending and horizontal.

Horizontal flight is basically movement between two airspaces, which is similar to how land-based movement works. The unit adapts to the height difference and does its best to move from tile to tile.

Vertical ascent/descent triggers when the unit is faced with a strict height difference between tiles. Basically they use their wings to ascend or descend as needed and then switch to either horizontal flight, if they are still airborne, or if they can walk, they switch back to land-based movement.

I still have a bit farther to go, but outside of more advanced water-based movement, this checks off the last box of movement types I wanted to implement. I really wanted to get this in before the alpha testing so that’s pushed back a bit but it’ll be worth the wait.

The next step, of course, is to create winged humanoid sprite base with a special flying animation. It requires the body to be drawn at a different angle, so it’ll be a while before that gets implemented, but you’ll still see flying units as certain items can give you access to the flying movement type.

As always, thanks so much for checking in with the development process. I’ll try and update more frequently, but know that development continues as planned and I hope to broaden alpha testing in the next few months.

Categories: News

Post navigation

Previous Previous post: February Roundup: Portraits & Shadows
Next Next post: Dusk Tactics – ScreenTest Released, Testers Needed!

Related Posts

  • Turret Potential and Game Polish

    One of the last features has been implemented: Turrets. Turrets make up immovable objects that can attack, such as a Ballista. Currently, the idea is to enable units to ‘take over’ a turret that’s on the map, after which it will automatically attack their enemies. The enemy CPU can also do this, so you might

    Avatar Posted by lou Posted on May 14, 2025
    0
  • New Additions: Dual Wielding

    The latest updates include a revamped weapon sprite system and the ability to properly dual wield weapons. When a unit equips a weapon, you’ll actually see it on the character sprite. This goes for both weapons and shields. Each weapon type has a default sprite, which some weapons having their own unique sprite. The update

    Avatar Posted by lou Posted on April 14, 2025
    0
  • Dusk Tactics State of the Game 2025

    I remember back in 2018 thinking that I’d have a public release demo out way before 2025. Well it’s 2025 and we’re getting pretty damn close. There’s way more cleanup going on than I would have ever imagined. So many things to wrap up and take care of, especially as a solo-developer. – Dusk Tactics

    Avatar Posted by lou Posted on February 5, 2025
    0
  • Looking At 2D Isometric Map Rotation

    There’s a lot of things that I’d like to add to the game, some are outside of the scope while some are just very difficult or impossible to get working and have them look how I want them to. One of these things is map rotation. It’s a downside to going to 2D isometric route,

    Avatar Posted by lou Posted on September 1, 2024November 20, 2024
    0
  • Dusk Tactics – ScreenTest Released, Testers Needed!

    As we get closer to a wider alpha demo release of the early version of Dusk Tactics, I will be conducting various tests to see the best methods for handling things like screen resolution. This is the toughest part because there are so many different resolutions, and then you have OS DPI magnification, etc. Since

    Avatar Posted by lou Posted on July 24, 2024July 25, 2024
    0
  • February Roundup: Portraits & Shadows

    So far this month we have already smoothed out dozens of gameplay features and cleaned up several bugs. This includes visual things like small tweaks to sprite animation problems (animations not playing properly) and proper placement/size of 2D shadows. Both of these have made gameplay look a lot better. Below we can see how the

    Avatar Posted by lou Posted on February 23, 2024February 28, 2024
    0
Avatar
lou
Creator of Dusk Tactics.

Leave a Reply Cancel reply

You must be logged in to post a comment.

Asides

Meta

  • Register
  •  • 
    Log in

    Account Management
    Game Features
    Gameplay System Overview
    Story & Characters
    Background Info & Character Bios
    World Lore
    Nations, Locations & History
    Combat
    Battle Flow & Formulae
    Unit Management
    Records, Inventory, Outfitting
    Job System
    Stat Growths, Tiers & Ranks
    Attributes
    Primary & Secondary Stat Info
    Abilities
    Skills, Arts, Magick & Prayer
    Passives
    Stat Boosts, Auras, Conditionals
    Status Effects
    Buffs, Debuffs & States
    Items
    Reagent, Potions & Equipment
    Development Log
    Latest Updates & Feature Progress
    Screenshots
    Gameplay Image Gallery
    Press Kit
    Coming Soon*
    • About
    • •
    • Contact Us
    • •
    • FAQs
    • •
    • Terms of Service
    • •
    • Privacy Policy
    • •
    • Sitemap
    COPYRIGHT © 2025 - Dusk Tactics