So, I'm not sure if there is a script out there for this already, or else on I could try to modify. But I want to be able to have separate character-sets for my hero for when he is standing still and one where he is moving. That way I can have a 4-frame animation of him bobbing up and down when he is standing still, as well as the regular 4-frame movement animation. I'm still teaching myself RGSS, mainly by altering and splicing together scripts from the database, so if there is some direction you can help point me in for building this myself I would also appreciate that. :)
Thanks
if you search for idle pose on these forums there should be a random post by someone who asked for a similar thing, and winkio (I think) gave them the script from blizz abs as an independent script, where all you would need to do is add _idl to the end of the charsetname
I don't wanna be that guy, but I've been searching for it, including going page by page trying to find the post, but still no luck. If anyone out there happens to know where that script might be that'd be super duper awesome! In the mean time I'll try to pull it out of the original script myself. Thanks for your help. :)
Quote from: Zexion on December 19, 2012, 01:42:44 am
if you search for idle pose on these forums there should be a random post by someone who asked for a similar thing, and winkio (I think) gave them the script from blizz abs as an independent script, where all you would need to do is add _idl to the end of the charsetname
LOL! You actually requested an edit to winkio's script Zexion! I fulfilled it by the way. xP
#==============================================================================
# ** Game_Player
#------------------------------------------------------------------------------
# With idle sprites. name the idle sprites the same as their normal ones
# except with '_idl' on the end (before the extension)
#==============================================================================
class Game_Player < Game_Character
#--------------------------------------------------------------------------
# * Public Instance Variables
#--------------------------------------------------------------------------
attr_reader :character_name_org # original character file name
attr_reader :current_sprite # current sprite suffix
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
alias initialize_idlesprites_before initialize
def initialize
initialize_idlesprites_before
# set original character name
@character_name_org = @character_name
# set current sprite
@current_sprite = ""
end
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
alias update_idlesprites_before update
def update
update_idlesprites_before
if @character_name != ""
if moving?
if @current_sprite != ''
@step_anime = false
@character_name = @character_name_org
@current_sprite = ''
end
elsif Input.dir4 == 0
if @current_sprite != '_idl'
begin
@character_name_org = @character_name
@step_anime = true
@character_name += '_idl'
bmp = RPG::Cache.character(@character_name, 0)
@current_sprite = '_idl'
rescue
@character_name = @character_name_org
@step_anime = false
return
end
end
end
end
end
end
Here's the topic I found by searching "idle pose" under script requests. http://forum.chaos-project.com/index.php/topic,9937.0.html
Gameus, you are a saint! Apparently I'm just a wang at using the search function on this website. Works like a charm.
No problem! Glad I could help. :)
Actually, I do have one issue. Instead of using my _idl.png image, its just animating my original. Do you know what might be causing this?
Since the version I posted was slightly edited, I might have actually screwed it up. Here's the original, see if it still occurs.
#==============================================================================
# ** Game_Player
#------------------------------------------------------------------------------
# With idle sprites. name the idle sprites the same as their normal ones
# except with '_idl' on the end (before the extension)
#==============================================================================
class Game_Player < Game_Character
#--------------------------------------------------------------------------
# * Public Instance Variables
#--------------------------------------------------------------------------
attr_reader :character_name_org # original character file name
attr_reader :current_sprite # current sprite suffix
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
alias initialize_idlesprites_before initialize
def initialize
initialize_idlesprites_before
# set original character name
@character_name_org = @character_name
# set current sprite
@current_sprite = ""
end
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
alias update_idlesprites_before update
def update
update_idlesprites_before
if @character_name != ""
if moving?
if @current_sprite != ''
@step_anime = false
@character_name = @character_name_org
@current_sprite = ''
end
elsif Input.dir4 == 0
if @current_sprite != '_idl'
@character_name_org = @character_name
@step_anime = true
@character_name += '_idl'
@current_sprite = '_idl'
end
end
end
end
end
Still doing it... maybe I'm not configuring the script right. Is there something I need to add to it or is it more "plug-and-play"?
It's just plug-and-play. The only thing I can think of is you have the wrong character file with the "_idl" extension.
Wish it were so simple. But thank you for all the help, I'll try to figure it out from here. :)
Lol, I knew I had seen it somewhere :P
Anyways make sure the charset you are using is still the normal name ex: 001-fighter.png and just add 001-fighter_idl.png to the characters folder.
the idl has to be the animation you want it to play while it's not moving/walking around.
Hope that cleared up something, and forgive mah grammar im not relaly focused
yeah, that's how I had it. the original image is labeled "cpt_med_sprite2.png" and the idle one is labled "cpt_med_sprite2_idl.png"
Did you try it in a new project? It's working for me.
Have any other scripts you are using? Best thing I can think of is another script that is constantly changing the @character_name to the original name.
Might not be "incompatible" just try re-ordering it too. I always stick the new scripts at the bottom right above main, and slowly move up to find the conflict.