Ladders have been added to the game to elevate units up to higher levels and build buildings on stilts. My previous ladder system was a hacky mess which required quite a lot of calculations on the part of each unit while moving anywhere, even when no ladders were relevant. Thanks to a tip from Cpt_Trippz I changed the ladder system to include a "Smart Nav Link" which automatically calculates a connection between two separated navigation mesh pieces once the ladder has been built.
The result is a lot more simple and it works quite well. You can see the green arrows connecting the green nav mesh planes. The unit understands that there is a way to go back and fourth between the elevations and approaches the ladder. Upon reaching the ladder, the unit will ascend or descend manually using the same functionality described before.
Unfortunately, it only allows one unit to climb at a time, so a workaround will have to be added.
I also added some new functionality to the ladders. If they are not up against a structure or cliff, the ladder will fall to the ground with physics.
But after the ladder has fallen it is not useless as it can be picked back up and placed at a new location! Here is what it looks like when it's being carried. Pretty goofy but it matches the game's look so far.
The ladder can be carried by one or two units (it's much slower with just 1) and placed wherever you like. I'm excited to see how this plays out in combat situations and I'm considering allowing the placement of units on flat roofs of structures like the Native American pueblos.
Using this functionality, I also allowed units to pick up canoes that have been beached so they can throw them in the water to be used. It really worked out nicely!
Let me know what you think, any tips you may have or ideas. Thanks!
I create, design and develop video games I'm interested in playing.
The Fire System
Melee and Ranged Units
Weather and "Seasons"
Ladders and Elevation
Animating 2D units in a 3D world
Setting the Theme
Setting the Focus