Jump to content
Chuckleberry Finn

Inconsistencies with some IsoGameCharacter movement related methods

Recommended Posts

The IsoGameCharacter methods related to movement seem to be very hit or miss as to which works with IsoPlayer and IsoZombie. I was only working with movement so I don't know if this extends to the whole class.

Some examples:

  • getMoveSpeed() works fine with IsoZombie returning a float which reflects their speed, the float for IsoPlayer is always 0.0599~ regardless if they're sprinting or not.
  • isSprinting()/isRunning() only works for IsoPlayer and not IsoZombie - IsoZombie seems to have their own set of variables related to their running/speed.
  • There is no isWalking() and I couldn't get `IsoGameCharacterj:getVariableBoolean("isWalking")` to work.
  • isMoving() only works for Zombies consistently, as it is actually checking to see if the IsoGameCharacter is moving on a path or not and there doesn't seem to be a point in which its changed to true for player inputted movement.

 

I don't know if this will help but I ended up copying the underlying math used in getMoveSpeed() and got the correct floats even from IsoPlayers.

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...