Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Picture Rotation Lag

Hi
I've tried to rotate a picture that covers the whole screen. But it lags, even on low speed.
It's a 928x928 picture on a 640x480 map. I thought it may be lagging because of the picture size, but when I zoom the picture to 50% or 25% it's not lagging even a bit.
I have also tried to take a small picture (320x240) and zoom it up to 400% but then it lags too.
What I've also tried is to rotate the pic via ruby (sprite.angle), same lag problem.
Oh and the event is just two lines started wih action trigger: Show Picture 1, Rotate Picture 1 Speed 2.

Summary:
Picture size doesn't seem to matter, even if it's a little pic...when it covers the whole screen, the fps go significantly down.
Any suggestions how to get a picture that covers the screen not to lag? :blank:
 
Using the angle property of the sprite is just doing manually what the event command does. (Sprite_Picture, line 69)

From the Doc:
angle
  • The sprite's angle of rotation. Specifies up to 360 degrees of counterclockwise rotation. However, drawing a rotated sprite is time-consuming, so avoid overuse.

You could check the SDK/MACL to see if Trick included a rotate method for the Bitmap class.

Or, try making an animation using your picture.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top