Python Forum

Full Version: My ship is not moving(
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
[attachment=2098][attachment=2099][attachment=2100] my rocket on my screen but i don't understood why it is not working
You aren't updating the screen. You need to redraw the screen any time anything changes.

I don't think you're going to be happy with how the ship moves. I would expect the ship to start moving when I press a key and stop, or begin decelerating, when the key is released. Your ship moves one tiny step each time a key is pressed.
Look, I need it to move at all. Then I upgrade the program. I do everything strictly according to the book, but for some reason their code does not work. If it’s not difficult, can you explain exactly where I need to change the code so that it constantly updates the screen.
I did tell you. Each time you move the ship you need to redraw the screen. Do you know where in the code you are moving the ship? Do you know what code redraws the screen? Make sure that each time you move the ship you call the code that redraws the screen.