I have a question about sprite zooming. For example, I made a sprite:
class Scene_Zoom < Scene_Base def start super create_sprite end def create_sprite @sprite_zoomed = Sprite.new @sprite_zoomed.bitmap = Cache.picture("dragon_pearl") end def update super # this is where I want to put the sprite to zoom end endBy zooming, my problem is that I know how to zoom...but the problem is how would I make it so as if the pearl is breathing, or like, it zooms up on a certain point, then changes back to its original size (zoom out), then goes back to zooming in again? I am thinking of an if else statement but somehow it doesn't work that much as I want it to.
What is the logic of making it like its breathing?
class Scene_Zoom < Scene_Base def start super create_sprite end def create_sprite @sprite_zoomed = Sprite.new @sprite_zoomed.bitmap = Cache.picture("dragon_pearl") end def update super # this is where I want to put the sprite to zoom end endBy zooming, my problem is that I know how to zoom...but the problem is how would I make it so as if the pearl is breathing, or like, it zooms up on a certain point, then changes back to its original size (zoom out), then goes back to zooming in again? I am thinking of an if else statement but somehow it doesn't work that much as I want it to.
What is the logic of making it like its breathing?