Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
adding physics
#1
Hello dear users.

im having trouble in making my game (its doodle jump witch i wrote with pygame) more naturally. 
im using the positions of my pictures to make the character jump and... ill be happy if you guys can help me with adding some physycs to it. thank you
Reply
#2
We won't program for you.
Send a snippet of the code that is giving you trouble,
and a full traceback of any error
we will be glad to help with a specific problem
Reply
#3
its not an error. i do not have any idea how to make it more natural. i was hoping if some on can name a library or some codes that i can go and learn.
Reply
#4
What's not looking natural? You say the game is named Doodle Jump. Are the jumps not looking natural? Are your jumps parabolas?
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply
#5
yes. the jumps. its not like its jumping, its like its flying up an then coming down. i want a way to make the jumps more naturally
Reply
#6
how could we possibly tell without seeing your code?

https://github.com/Mekire/pygame-samples...latforming

each one is an example (PS you need the png images in the same directory downloaded). Check out fall_rect.py for basic, and fall_mask for better. You can check out the physics in each.
Recommended Tutorials:
Reply
#7
I am not really sure what you are asking,but I think what you want to say is' how do I make my character jump instead of just drawing one at the ground and one at the sky to make it look like it is jumping?'

If that is true,
My advice for you is to learn
1)game loop
2)FPS
3)time Delta
4)time/clock/timing

Note:I am still a beginner ,so I am not really good yet,but I am quite sure this will help you.
Hope it will,does it?
Reply
#8
You do realize that you are answering a post from December of last year don't you?
Reply
#9
sorry,i dint see the date.
i answered it because it is one of the first few post from the top(thought it is a new one).
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020