adding physics - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Game Development (https://python-forum.io/forum-11.html) +--- Thread: adding physics (/thread-1268.html) |
adding physics - sarvar - Dec-19-2016 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 RE: adding physics - Larz60+ - Dec-19-2016 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 RE: adding physics - sarvar - Dec-19-2016 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. RE: adding physics - ichabod801 - Dec-19-2016 What's not looking natural? You say the game is named Doodle Jump. Are the jumps not looking natural? Are your jumps parabolas? RE: adding physics - sarvar - Dec-19-2016 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 RE: adding physics - metulburr - Dec-19-2016 how could we possibly tell without seeing your code? https://github.com/Mekire/pygame-samples/tree/master/platforming 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. RE: adding physics - hsunteik - Feb-09-2017 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? RE: adding physics - Larz60+ - Feb-09-2017 You do realize that you are answering a post from December of last year don't you? RE: adding physics - hsunteik - Feb-09-2017 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). |