CharSet Frame Change - Printable Version +- Save-Point (https://www.save-point.org) +-- Forum: Archives (https://www.save-point.org/forum-105.html) +--- Forum: Creation Asylum Archives (https://www.save-point.org/forum-90.html) +---- Forum: Scripts & Code Snippets (https://www.save-point.org/forum-92.html) +----- Forum: RPG Maker XP Code (https://www.save-point.org/forum-93.html) +------ Forum: Enhancement/Modification Scripts (https://www.save-point.org/forum-98.html) +------ Thread: CharSet Frame Change (/thread-6546.html) |
CharSet Frame Change - XeroVolume - 10-22-2006 CharSet Frame Change by XeroVolume Oct 22 2006 This is a locked, single-post thread from Creation Asylum. Archived here to prevent its loss. No support is given. If you are the owner of the thread, please contact administration. Use this code if you have a CharSet that uses more than 4 frames for animation. Features: Allows loading of CharSets being of any column width, such as that of 8-frame movement characters. Usage: If you do not wish to use the default 4 frames movement, place "w_x" within the filename of the CharSet to be used. "x" represents the number of frames being used. For example: "hero2 w_8.png" might be the name of a CharSet that uses 8 frames for movement. Installation: Apply the edits found in the sections below. Game_Character 1 Add on line 28, after attr_accessor: transparent Code: #-------------Edit-----------------------------Edit-----------------------------Edit---------------- Game_Character 2 Replace @pattern = (@pattern + 1) % 4 (should be line 31) with: Code: #-------------Edit-----------------------------Edit-----------------------------Edit---------------- Replace @character_name = command.parameters[0] (should be line 323) with: Code: #-------------Edit-----------------------------Edit-----------------------------Edit---------------- Game_Event Replace @character_name = actor.character_name (should be line 141) with: Code: #-------------Edit-----------------------------Edit-----------------------------Edit---------------- Game_Player Replace @character_name = actor.character_name (should be line 106) with: Code: #-------------Edit-----------------------------Edit-----------------------------Edit---------------- Sprite_Character Replace @cw = bitmap.width / 4 (should be line 47) with: Code: #-------------Edit-----------------------------Edit-----------------------------Edit---------------- Now add a new class after Game_Character 3 called Game_Character_CFC Paste this into it: Code: class Game_Character *NOTE* I did not write this script!!! Sorry, but I don't know who the original author is. That being said, if anyone recognizes this or knows who wrote it, please let me know so I can give them the credit they deserve!!! P.S. This is my first script post. How'd I do? |