[edit Answer]
Alright good news:
#==============================================================================
# ** Game_Character (part 1)
#------------------------------------------------------------------------------
# This class deals with characters. It's used as a superclass for the
# Game_Player and Game_Event classes.
#==============================================================================
class Game_Character
#--------------------------------------------------------------------------
# * Alias Methods
#--------------------------------------------------------------------------
alias_method :algn_shrinking_game_character_initialize, :initialize
#--------------------------------------------------------------------------
# * Public Instance Variables
#--------------------------------------------------------------------------
attr_reader :shrinking
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
algn_shrinking_game_character_initialize
@shrinking = false
end
#--------------------------------------------------------------------------
# * Shrinky Dink Mode On
#--------------------------------------------------------------------------
def shrink
@shrinking = true
end
#--------------------------------------------------------------------------
# * Get Bigger Quicker
#--------------------------------------------------------------------------
def unshrink
@shrinking = nil
end
end
#==============================================================================
# ** Sprite_Character
#------------------------------------------------------------------------------
# This sprite is used to display the character. It observes the Game_Character
# class and automatically changes sprite conditions.
#==============================================================================
class Sprite_Character < RPG::Sprite
#--------------------------------------------------------------------------
# * Alias Methods
#--------------------------------------------------------------------------
alias_method :algn_shrinking_sprite_character_update, :update
#--------------------------------------------------------------------------
# * Constant Variables
#--------------------------------------------------------------------------
SHRINK_RATE = 0.02 # Translates to a percentage of a 100%
SMALLEST_SIZE = 0.20 # The smallest percentage size the character can be.
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
def update
algn_shrinking_sprite_character_update
# If the character is shrinking.
if @character.shrinking
# Test to see if we should continue to shrink.
if self.zoom_x > SMALLEST_SIZE
self.zoom_x -= SHRINK_RATE
self.zoom_y -= SHRINK_RATE
else
# Just in case the rate is uneven.
self.zoom_x = SMALLEST_SIZE
self.zoom_y = SMALLEST_SIZE
end
else
# If we are still smaller than 1.0
if self.zoom_x < 1.0
self.zoom_x += SHRINK_RATE
self.zoom_y += SHRINK_RATE
else
# Just in case the rate is uneven.
self.zoom_x = 1.0
self.zoom_y = 1.0
end
end
end
end
Uh I hope this is just a problem I have but it's really cool and odd at the same time. There is a mysterious bug which I can not for the life of me figure out. Inside the method unshrink I have added a line. It does nothing really but when the method had only @shrinking = false the player would hang and you could not move. The line must do some sort of work it can not be a comment. At least thats what was happening to me. It is by far the oddest thing I've ever encountered in RMXP. Anyway if you
do get rid of that line and the player still moves, great. Just tell me so.
Anywho how it works. First install the script by creating a new section above Main in your Script Editor. Paste in the code I gave you above.
If you want the player to shrink. Use the event command "Script.." with the following line:
If you want the player to get back to normal size:
Good luck with it Allogagan! :thumb: