I have created a sprite_class but it only shows one bitmap. I based it to something like this:
This is where I need help. In the update part, I wonder if there's a way to cycle through other images. By cycle, what I mean is that within a few seconds / value, the image sprite's bitmap changes into another. I use suffixes to it, such as box_1, box_2, box_3, etc. Is there a way to do this? If so, I would like to see the workaround and an explanation.
Thanks.
function Sprite_SampleImage() { this.initialize.apply(this, arguments);}Sprite_SampleImage.prototype = Object.create(Sprite_Base.prototype);Sprite_SampleImage.prototype.constructor = Sprite_SampleImage;Sprite_SampleImage.prototype.initialize = function() { Sprite_Base.prototype.initialize.call(this); this.setCoordinates(); this.setBitmap()};Sprite_SampleImage.prototype.setCoordinates = function() { this.x = Graphics.width / 2 + 100; this.y = Graphics.height / 2 - 100};Sprite_SampleImage.prototype.setBitmap = function() { this.bitmap = ImageManager.loadPicture('Sample_Box');};Sprite_SampleImage.prototype.update = function() {};
Thanks.