(VXace) Yanfly Visual Battlers: Make players static sprite as well.

Starmage

Veteran
Veteran
Joined
Apr 2, 2016
Messages
783
Reaction score
843
First Language
FIlipino
Primarily Uses
N/A
Hello everyone! I need help with Yanfly's Visual Battlers here: https://yanflychannel.wordpress.com/rmvxa/battle-scripts/visual-battlers/

As you may have noticed, the script allows for side-view battles in VXace. But I wish to make it so that instead of using charsets for the player characters... it will instead use static sprites just like the enemy does... in sideview!

In order to create an image of what I mean... here's how I imagine it to be:


Like, the player sprites will still move forward as they attack/cast like a true FF1 inspired sprite as the script intended, but instead, it'll be a static sprite.

Hope I do not confused anyone! xD Thanks so much for any help! ^_^
 

Starmage

Veteran
Veteran
Joined
Apr 2, 2016
Messages
783
Reaction score
843
First Language
FIlipino
Primarily Uses
N/A
Hi Powell! Thanks for the response and for the links! :) But I've already got it working now! ^_^ All thanks to @TheoAllen ! :D

To anyone who's interested in how I did it and wishes to achieve the very same static player battlers on sideview as I did! Then just do this:

Add Theo's code below the Visual Battlers script:
Code:
class Game_BattleCharacter
  def pattern
    return 1
  end
  def character_name
    return "" unless @actor
    @actor.visual_battler
  end
end

class Game_Actor
  def visual_battler
    actor.visual_battler
  end
end

class RPG::Actor
  def visual_battler
    @vb ||= lambda do
      note[/<battler\s*:\s*(.+)>/i] ? $1.to_s : character_name
    end.call
  end
end
Then on your actors, add the note-tag: <battler: filename>

Add your static battlers image file unto the charset folder of your game. :)

Note that the battler image must still follow the same 3x4 pattern of the charset map sprite. Just put the static image on the middle parts... Like what I did below:


Remember, that if you wish to use Visual Battlers script along with Theo's code, please be sure to credit him as well for his effort in making it possible! :D
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD

Forum statistics

Threads
105,868
Messages
1,017,074
Members
137,578
Latest member
JamesLightning
Top