Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Player hops up when ground is removed from underneath them #12

Closed
jamesaorson opened this issue Feb 27, 2019 · 3 comments
Closed

Player hops up when ground is removed from underneath them #12

jamesaorson opened this issue Feb 27, 2019 · 3 comments

Comments

@jamesaorson
Copy link

This forum post provides some deeper information including a video example.

The code causing this is on platypus.lua:473-481:

-- was the ground we're standing on removed?
if platypus.parent_id then
    local ok, _ = pcall(go.get_position, platypus.parent_id)
    if not ok then
        platypus.parent_id = nil
    	state.current.ground_contact = false
    	go.set_position(go.get_position() + state.current.world_position - state.current.position)
    end
end
@britzl
Copy link
Owner

britzl commented Mar 10, 2019

I've tried to reproduce the problem but I have failed so far. Can you share a minimal example reproducing the problem?

@jamesaorson
Copy link
Author

I have made a minimal example with the issue still present. You should be able to download a zip without being logged in.

@britzl
Copy link
Owner

britzl commented Mar 25, 2019

I didn't adjust for game object bounds when ground/parent was removed. Please try: https://github.com/britzl/platypus/releases/tag/3.2.0

@britzl britzl closed this as completed Mar 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants