Tag: c#

Triggering World Animations In Unity Timeline To Tell Stories

Triggering World Animations In Unity Timeline To Tell Stories

How do AAA games make their worlds feel alive and interesting, even if all the player is doing is walking down the street? They consider their worlds as living entities, not just static backdrops. One way they do this is by using movement within their game world to tell a story.   Let’s look at a simple, specific example… Here is a game scene from our RPG that we’ve been developing. The player is progressing along their path, heading towards the next steps of the quest we’ve created for them. In our game, like most RPGs, we’re using combat as a primary system of challenge and interest… but of course we don’t want to have one, long, continuous combat sequence. In this instance, what are our options for communicating story to the player? Well, we can have the player bump into an NPC and deliver some dialogue. That is usually the most to-the-point way of getting story across. For example: Crazy Bill: Quick, the town is under attack, the villagers need help. Player: Rightio Bill, I’ll get right on that. Or we can pop up a dialogue box on the screen saying something to the effect of: “The town is […]

Read More

Why A-Star Pathfinding Sucks

Why A-Star Pathfinding Sucks

Looking to get a game character from A to B? Want it to work-out its own route around obstacles? This is called pathfinding, and everyone keep harping on about A* (said A star). This is an awesome technique, but it can also suck for beginners! Why? Because it’s much more complex and, in many simple cases, unnecessary. The table below shows how it stacks up against other pathfinding algorithms… As you can see, A* doesn’t win on all counts. Do you need movement cost – the ability to have areas where the character moves faster or slower like roads or swamps? Do you need blistering speed, or would 50% slower than A* be just fine? If the answer to these questions is no, and you’re just starting-out, why would you put yourself through the pain of learning A*? Apart from the added complexity of understanding and programming A*, there are some other ways in which it sucks. If you want to find a path from a start point to multiple possible end points, or from multiple start points to one end point (thing Defence Grid 2 or other RealTime Strategies), then A* sucks as it’s designed for point-to-point pathfinding. The […]

Read More