Multi-frames for Sprite sets

Started by Blazefire, June 04, 2010, 10:40:21 pm

Previous topic - Next topic

Blazefire

i'd like to request a script that allows more then four frames in a sprite set and that is compatible with Blizz-ABS 2.79 , a script that sort of like minkoff's animated battlers but can be used in an ABS preferably Blizz-ABS 2.79 ^^



i understand if no one will take this up but still i will be waiting and hoping that some one will take this up ^^

Valdred

June 05, 2010, 01:21:54 pm #1 Last Edit: June 05, 2010, 01:29:46 pm by Valdred
I have not tested this, but I did alias the update method so it should work with blizz-abs.

module X_frames
 
WIDTH = 2 # amount of horizontal frames
HEIGTH = 2 # amount of vertical frames

end

class Sprite_Character < RPG::Sprite
  alias old_update update
  def update
    old_update
        @cw = bitmap.width / X_frames::WIDTH
        @ch = bitmap.height / X_frames::HEIGTH
  end
end



EDIT: Be sure to put it bellow all the 3 blizz-abs scripts or nothing will happen.

Blazefire

Quote from: Valdred on June 05, 2010, 01:21:54 pm
I have not tested this, but I did alias the update method so it should work with blizz-abs.

module X_frames
 
WIDTH = 2 # amount of horizontal frames
HEIGTH = 2 # amount of vertical frames

end

class Sprite_Character < RPG::Sprite
  alias old_update update
  def update
    old_update
        @cw = bitmap.width / X_frames::WIDTH
        @ch = bitmap.height / X_frames::HEIGTH
  end
end



EDIT: Be sure to put it bellow all the 3 blizz-abs scripts or nothing will happen.


tnx ^^