My current concern is the player's moving between zones effectively--the current system does not allow the player to move to Free Move Zones lower on the list.
I have identified the cause--it has to do with the FMZs intersecting, and getFMZ() returning the first zone it finds on the list:
- When the player tries to exit the portal, getFMZ() gets the first zone on the array list that the player is within.
- Then, the player collides with the incorrect FMZ.
I have an idea of how to fix it:
- The portals currently store a direction that specifies which way points to a destination zone
- if we compare the direction that the player is moving to that stored direction, then we can get which of the connected zones that they probably are moving to
- all we'd have to do is make sure the player is really within the zone with the FMZ's isPointWithin() function.
I can code this in an instant (got it laid out in my head!), but I don't have the latest SVN--and the EKU firewall is a problem for being off campus.
@Shea and Matthew: if you have the latest version, I think I only need to change the Character.cs file (emphasis on "I think").
No comments:
Post a Comment