Rotating Sword... Wone Grong :S
The Alchemist » Devlog
Warning: a bit of PyGame knowledge is desirable to read this post, but not mandatory.
Ok, I'm adding a new feature where you can kill the mobs when collecting the potions using a sword.
To do so I'm using a pygame's built-in function called "rotate" to create the illusion of brandishing the alchemist's sword.
The code for this is real simple, the sprites listen to the space bar being hit and set a flag "brandishing" to true... on the other hand.. into the update method if "brandishing" is True, I rotate the sword 1 degree clockwise. And that should be enough to get things running... right??
Look at this clip while I'm fixing it.
Get The Alchemist
Download NowName your own price
The Alchemist
Things went wrong on the alchemist's house, help him overcome this situation!
More posts
- Version 1.4 released! Levels and new Enemies!Apr 02, 2021
- Hackable levels: 1.4 PreviewMar 23, 2021
- Particles & Grayscale with Pygame and NumpyMar 09, 2021
- Red Challenge: Watch me fail over and over again ~.~Mar 04, 2021
- Version 1.3.5: Banishing VFX/SFX for mobsMar 02, 2021
- Version 1.3.4 Available! new UI and better mechanicsFeb 24, 2021
- Python 3.9.2 available for download!Feb 20, 2021
- Dynamically sized frame box with PyGame: Am I framing everything? YesFeb 19, 2021
- Next steps... Let's walkFeb 17, 2021
- Version 1.3.3 Available! New Mobs, Friction, Swords, and more...Feb 15, 2021
Leave a comment
Log in with itch.io to leave a comment.