4 Hugues Ross Writes a Devlog: AMAZE - 21 - Pushing Things Around
Hugues Ross

3/1/14

AMAZE - 21 - Pushing Things Around

Changelog:

  • Added Conveyor Belts, which move anything on them in one direction.
  • Revised how object velocity is handled with respect to object collisions.
  • Added an animation for disappearing locked doors.
  • Fixed a bug where loading a saved game, exiting to the menu, then starting a new game could start you with the wrong tileset.
  • Fixed a bug where loading a saved game, exiting to the menu, then starting a new game could cause the camera to start oddly zoomed out.
  • Smoothed out the camera zoom animation.
Today, I'd like to talk about the second item on this list, the nebulous 'Revised how object velocity is handled with respect to object collisions.' You might be wondering what exactly that means. Basically, prior to this week, any object that collided with a solid object stopped on the spot. While this worked really well up until this point, I started running into issues once I added conveyor belts. Before now, you could hardly ever run into situations where two solid moving objects could run into each other. Now, it's easy:
Let's say there's an L-shaped section of conveyor belts. If two blocks are moving through this and they're close enough, one will run into the other at the turn. Previously, both blocks would get stuck and stop moving. With this new change, objects only stop moving when they collide and are moving towards the other object. Thus, in our L-shaped conveyor belt, the second block will stop until the first one moves, then it will continue. The first block was never moving towards the second, so it shouldn't suddenly stop.
Post a Comment