Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Changing Graphic

Before I help...

1. Search first.

2. Be detailed about your request. One sentence request is the worst way to define your request (and mostly you request will be off the record).

Actually, I don't understand what you need. What do you mean by "can't press a button and change your graphic"?
 

Kairo

Member

1 word...EVENTS

Make an event on a map which is a bit like
> Conditional Branch: When Player presses [Y] while [Link] charset is [Normal]
> Change [Link] Character to [Attack]

I haven't been using RMXP but I'm between the lines I guess...

~Winged
 
Dopey, you're the failure... that's like 7 lines of scripting... ^_^

@noobo: Insert the following code in a new script above Main, below Scene_Map:
Code:
#==============================================================================
# Character Graphic Change
#------------------------------------------------------------------------------
# Script by BlueScope
#==============================================================================

class Scene_Map
  #--------------------------------------------------------------------------
  alias weaponswitch_update update
  def update
    if Input.trigger?(Input::A)
      actor = $game_party.actors[0]
      if actor.character_name == "LinkUnarmed"
        actor.set_graphic("LinkArmed", character_hue, battler_name, battler_hue)
      else
        actor.set_graphic("LinkUnarmed", character_hue, battler_name, battler_hue)
      end
    end
    weaponswitch_update
  end
  #--------------------------------------------------------------------------
end
Note the graphic names (LinkUnarmed and LinkArmed), which you most likely need to adjust. Also, I've changed the key to Shift, as you'd need a keyboard input module to make the Y key working. If you actually mean RMXP's Y button (by default on the key 'S'), just change the A in there to a Y...
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top