Drawing rotating scaled sprites...

BlitzMax Forums/BlitzMax Beginners Area/Drawing rotating scaled sprites...

Ryan Burnside(Posted 2010) [#1]
I am currently drawing a sprite that has automidhandle set to true. I can make it rotate quite easily using the setrotation commands My problem is that I need to be able to draw these sprites at different sizes and still have them pivot around a centered point. How is this done?


Jesse(Posted 2010) [#2]
it will all be done automatically.


Ryan Burnside(Posted 2010) [#3]
OK thank you, I was trying to use drawimagerect() with rotation but setting the scale works well.


Jesse(Posted 2010) [#4]
I can post some code to center drawimagerect() if you want to use that.