Hello, I've been working on a custom script for my game that allows me to transform the player in the overworld with the press of a button. However, I do not know the syntax of how to change a player's graphic via scripting. I have created a code, so far, but I don't know where to go with this. I've been looking for examples of something similar, but I haven't been able to find something that is SPECIFICALLY for changing graphics.
Here is the code:
def pbTransform
transform = RPG::MoveRoute.new
transform.repeat = false
transform.list = []
transform.list.push( RPG::MoveCommand.new(36, []) )
transform.list.push( RPG::MoveCommand.new(17, []) )
transform.list.push( RPG::MoveCommand.new(15, [3]) )
transform.list.push( RPG::MoveCommand.new(18, []) )
transform.list.push( RPG::MoveCommand.new(15, [3]) )
transform.list.push( RPG::MoveCommand.new(41,['transform1'])) <---- This is the part that I am unsure about, because everything else works fine.
transform.list.push( RPG::MoveCommand.new )
$game_player.force_move_route(transform)
end
So yes, I can get everything else but that to work. Even still, going off of the RGSS Reference Manual I couldn't find any good examples of one in action.
Here is the code:
def pbTransform
transform = RPG::MoveRoute.new
transform.repeat = false
transform.list = []
transform.list.push( RPG::MoveCommand.new(36, []) )
transform.list.push( RPG::MoveCommand.new(17, []) )
transform.list.push( RPG::MoveCommand.new(15, [3]) )
transform.list.push( RPG::MoveCommand.new(18, []) )
transform.list.push( RPG::MoveCommand.new(15, [3]) )
transform.list.push( RPG::MoveCommand.new(41,['transform1'])) <---- This is the part that I am unsure about, because everything else works fine.
transform.list.push( RPG::MoveCommand.new )
$game_player.force_move_route(transform)
end
So yes, I can get everything else but that to work. Even still, going off of the RGSS Reference Manual I couldn't find any good examples of one in action.