I noticed you updated Platypus over the past couple of days! If anyone is creating a platformer without this extension I strongly recommend you take a look at it, it’s brill!
https://github.com/britzl/platypus
I have a few questions:
-
The new seperation option: Using
platypus.SEPARATION_RAYS
completely fixes an issue I had with slow moving objects colliding with individual tiles and getting stuck. Is this sticking effect the reason it was introduced? -
The subsequent reintroduction of a
platypus.SEPARATION_SHAPES
option. Was this simply for completion or did you notice a use scenario where this option works better than with rays? -
instance.up(velocity)
andinstance.down(velocity)
: Could you please give a usage example for these. Whenever I use them they immediately get cancelled by gravity. I got round this by adding aplatypus.set_gravity(gravity)
function toplatypus.lua
. Using this to set gravity to 0 when the player has ladder contact for example and up and down work but I could be missing something completely obvious.
-- Set or change gravity after initialization
-- @param gravity
function platypus.set_gravity(gravity)
platypus.gravity = gravity
end
Other than that thanks a lot for the superb library!