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

[bug] image disappears when gravity is applied #51

Open
MartenPostma opened this issue Dec 13, 2024 · 0 comments
Open

[bug] image disappears when gravity is applied #51

MartenPostma opened this issue Dec 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@MartenPostma
Copy link

What happened?

A bug happened!

`
import play
image = "door.png"
box = play.new_box(
width=1000,
height=30,
x= 0,
y= -300
)
box.start_physics(can_move=False,
bounciness=1,
)

person = play.new_image(image=image,
x=0,
y=6,
size=20)
person.start_physics(obeys_gravity=True)

@play.repeat_forever
def check():
print(person.x)
print(person.y)
input('continue?')
play.start_program()
`

Version

latest

Relevant log output

Hello from the pygame community. https://www.pygame.org/contribute.html
0.0
6.0
continue?
0.0
5.874999999999998
continue?
0.0
5.47222222222222
continue?
@MartenPostma MartenPostma added the bug Something isn't working label Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant