

Je ne sais vraiment pas quoi faire, vue que je ne sais pas scripter.

set (sx, sy, , ) end end endīonjour, je viens d'installer le script dans mon projet, mais des que j'ouvre mon projet un message d'erreur s'affiche et me dit :Script 'Spritest_Map" line69: NnoMethodError occurred. direction % 2 != 0 & KMDM::DIRSPRITE = true character_index #if the character is facing diagonally, use the second spriteset if.
#RPG MAKER MV 8 DIRECTIONAL MOVEMENT UPDATE#
#- # * Update Transfer Origin Rectangle #- def update_src_rect # Modifies: def update_src_rect #= class Sprite_Character < Sprite_Base Set_direction ( 9 ) if (passable?, - 1 ) and passable? + 1, - 1 ) ) or (passable? + 1, ) and passable? + 1, - 1 ) ) += 1 -= false else = true end end end #= # ** Sprite_Character #- # Adds functionality for diagonal character sprites. Set_direction ( 8 ) end if (passable?, - 1 ) and passable? - 1, - 1 ) ) or (passable? - 1, ) and passable? - 1, - 1 ) ) -= 1 -= false else = true end end #- # * Move Upper Right #- def move_upper_right (turn_ok = true ) Set_direction ( 3 ) if (passable?, + 1 ) and passable? + 1, + 1 ) ) or (passable? + 1, ) and passable? + 1, + 1 ) ) += 1 += false else = true end end #- # * Move Upper Left #- def move_upper_left (turn_ok = true ) if KMDM::DIRSPRITE = true Set_direction ( 5 ) if (passable?, + 1 ) and passable? - 1, + 1 ) ) or (passable? - 1, ) and passable? - 1, + 1 ) ) -= 1 += false else = true end end #- # * Move Lower Right #- def move_lower_right (turn_ok = true ) #- # * Move Lower Left #- def move_lower_left (turn_ok = true ) # Modifies: def move_lower_left, def move_lower_right, def move_upper_left, # and def move_upper_right #= class Game_Character dir8 when 1 move_lower_leftĮnd end end #= # ** Game_Character #- # Corrects direction so events will respond when hero is facing diagonal. (could be better implemented, # but does work as it is) #= # Changelog # 1.0 Initial Release # 1.1 Added support for no custom sprites and added compatibility with # Anaryu's Anti-Lag script (must be loaded above the anti-lag script) #= #= # ** Script Configuration #= module KMDMĭIRSPRITE = false # set to true if you are using a custom # character sprite for diagonal movement end #= # ** Game_Player #- # rewrote def move_by-input to enable extra directions #= class Game_Player < Game_Character # Features: # * Added movement functionality to allow your hero to move in diagonal # directions # * Corrects directional issues resulting from trying to activate events # while facing a diaganol direction. Once you add it and run your game, the script will # automagically enable 8-way directional movement for your hero. #= # Instructions: # Add this script towards the top, since methods are rewritten and not # aliased. #= # 8 Way Directional Movement #- # Kylock # Version 1.1 #= # Special thanks to Arrow-1 for the script request and supplying sprites for # testing purposes.
