#π Replacing an image on Pygame
17 messages Β· Page 1 of 1 (latest)
@iron vapor
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
Do you have a sprite class made for your character?
And the png for the rotated part?
I don't its simply an image that i screen.blit()
my 4 varients for left, right, up and down are all seperate PNGs loaded into the file
If you want to manipulate "image" with keybinds in pygame, make a sprite class for it.
okay i'll try to figure that out, thanks
Add transitions to whatever you want.
Then call said transitions whenever the key is pressed.
okay thanks man
My pleasure
Found this as well for you.
https://www.pygame.org/docs/tut/MoveIt.html
Join vc 1 if you like, I'm actually working on a 2d game with arcade. I can show you how we make sprites logically speaking.
I haven't done it in pygame as well yet, but same logic applies.
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.