Formerly known as RMVXP, Save-Point is a game creational forum that aids users in creating games using software like RPG Maker or Game Maker. Support is also available today for members and members can also upload and download resources and scripts to use in their games. If you are new or experienced we welcome you to register.
Introduction
This script adds additional properties from the Sprite class to Game_Character such as angle, color, mirror, tone, zoom_x, and zoom_y. For this version, I also combined my Event Angle/Color/Mirror/Tone/Zoom add-ons and my script calls with this script.
Features
This gives Character sprites additional properties from the Sprite class such as Angle, Color, Mirror, Tone, Zoom, Wave Amp, Wave Length, and Wave Speed
Change the angle, color, mirror, tone, zoom, wave amp, wave length, and wave speed of a character sprite using script calls.
Set Angle, Color, Mirror, Tone, Zoom, Wave Amplitude, Wave Length, and Wave Speed of Events using special comments.
Change certain properties of a character sprite to a desired value in a certain number of frames with a script call.
What's New?
For v2, I merged two add-ons I made for the original (Change Character Sprite Angle/Color/Size/Tone in frames and Event Angle/Color/Size/Tone) into one package and threw in several new script calls which should be useful (e.g.: zoom_change, color_*_change, tone_*_change).
Media
Images
Note the treasure chests, statues, and the flying imp hovering over Ralph.
Author's Notes
I wanted to work on letting game creators animate character sprites a little more through script calls. I noticed certain properties such as angle, color, mirror, tone, and angle were missing so I wanted to add them in.
Thanks
Charlie Fleed for showing me how to script special comments a few years ago.
Prof. Meow Meow making fantastic use of it in a demo he showed me a few years ago.
License / Terms
Free for non-commercial and commercial purposes. Just credit me.
Formerly known as Punk.
He Used To Feel Invincible, But Now He Doesn't Feel At All...
Also, yo! This script's been updated to version 1.2 as of today! This update particularly caters towards those who didn't like how the sprite's zoom level value 1.0 signifies actual pixel size. So I decided to do something about it and made 100.0 signify actual pixel size. I've also added a customization option for anyone who does not like the change.
Formerly known as Punk.
He Used To Feel Invincible, But Now He Doesn't Feel At All...
Event Tone, Color, Size, Angle and Mirror [Exclusive]
Event Tone, Color, Size, Angle and Mirror
Introduction
The following five scripts I'm submitting allows the user to alter an event sprite's size, angle, tone, color and have it flip horizontally. These scripts will require the Character Sprite Add-ons script in order for them to work.
Features
Change tone of event sprite. (Event Tone)
Give it a color. (Event Color)
Change the size of the event sprite. (Event Size)
Change the angle of the event's sprite. (Event Angle)
Instructions
These scripts require the Character Sprite Add-ons script in order for them to work.
FAQ
How to change the angle of an event sprite
Go to a map event, select the Comment event command and type this:
$angle value
How to set the color of an event sprite
Go to a map event, select the Comment event command and type this:
$color red(0 - 255)green(0 - 255)blue(0 - 255)alpha(0 - 255)(optional)(default: 255)
How to flip the event sprite horizontally.
Go to a map event, select the Comment event command and type this:
$mirror
How to change the size of an event sprite.
Go to a map event, select the Comment event command and type this:
$size x-scaley-scale
Note that 1.0 denotes actual size of the sprite.
Example: $size 0.5 0.5 - Half the size of the normal sprite.
How to set the tone of an event sprite.
Go to a map event, select the Comment event command and type this:
$color red(-255 - 255)green(-255 - 255)blue(-255 - 255)saturation(0 - 255)(optional)(default: 0)
Compatibility
Methods aliased:
Game_Event < Game_Character
refresh
Credits and Thanks
Charlie Lee: For teaching me how.
MGCaladtogel: I did a bit of code ripping from his NeoMode7 script.
Author's Notes
Boredom makes me do this.
Terms and Conditions
Credit me, I s'pose. :P
[This was a post of a script that used to be an add-on.]
Formerly known as Punk.
He Used To Feel Invincible, But Now He Doesn't Feel At All...
Heya, sorry for the bump but since this topic is already over 600 views and counting, I'm assuming somebody must have installed this by now.
It's been given the upgrade to 1.1 and now the developer can change the tone, angle, color and size of a character's (player or event) sprite with script calls.
Formerly known as Punk.
He Used To Feel Invincible, But Now He Doesn't Feel At All...
Introduction
Adds on additional properties from the Sprite class to character sprites which weren't included before such as Angle, Tone, Color, Mirror, Zoom_X and Zoom_Y. As of version 1.1, it also allows devs to change certain properties of character sprites.
Features
Gives character sprites additional properties from the Sprite class such as angle, tone, color, mirror, zoom_x and zoom_y.
Change the color, tone, angle and size of character sprites with script calls.
1 customization option. (See Customization section in text file.)
Script
Character Sprite Add-ons VX
Code:
=begin
????????????????????????????????????????????????????????????????????????????????
? Character Sprite Addons ?
? Version 1.2 by PK8 ?
????????????????????????????????????????????????????????????????????????????????
????????????????????????????????????????????????????????????????????????????????
? ? Description: ?
? ?? Adds on additional properties to character sprites which weren't included ?
? before such as Angle, Tone, Color, Mirror, Zoom_X and Zoom_Y. ?
????????????????????????????????????????????????????????????????????????????????
? ? Features: ?
? ?? Gives character sprites additional properties from the Sprite class such ?
? ? as angle, tone, color, mirror, zoom_x and zoom_y. ?
? ?? Change the angle, size, color, tone of a character sprite as well as ?
? flipping it horizontally with script calls. (New to Version 1.1) ?
????????????????????????????????????????????????????????????????????????????????
? ? Customization ?
? ?? For those who don't like how in the zoom functions, the value 1.0 ?
? signifies "actual pixel size", I've changed it a bit to make the value ?
? 100.0 signify actual pixel size. For those who may not like the update, ?
? you can disable this by jumping to the third line after this long box ?
? and set CharacterSpriteZoom100 to false. ?
????????????????????????????????????????????????????????????????????????????????
? ? Usage: ?
? ? ? Tones. ?
? ?? How do I change the tone of the player's sprite? ?
? ? 1. Use Call script event command. ?
? ? 2. Type this (replace red green blue saturation with values): ?
? ? $game_player.tone = Tone.new(red, green, blue(, sat)) ?
? ? return true ?
? ?? How do I change the tone of an event's sprite? ?
? ? 1. Use Call script event command. ?
? ? 2. Type this (replace id with an event id): ?
? ? $game_map.events[id].tone = Tone.new(red, green, blue(, sat)) ?
? ? return true ?
? ?? Example usage? I may still be confused. ?
? ? $game_player.tone = Tone.new(100, 100, 100, 255);return true ?
? ? $game_player.tone = Tone.new(-64, 0, -64, 0);return true ?
? ? $game_player.tone = Tone.new(-64, 0, -64);return true ?
? ? ?
? ? ? Angles. ?
? ?? How do I change the angle of the player's sprite? ?
? ? 1. Use Call script event command. ?
? ? 2. Type this (replace angle with a value): ?
? ? $game_player.angle = value ?
? ?? How do I change the angle of an event's sprite? ?
? ? 1. Use Call script event command. ?
? ? 2. Type this (replace angle with a value, id with an event id): ?
? ? $game_map.events[id].angle = value ?
? ? ?
? ? ? Colors. ?
? ?? How do I change the color of the player's sprite? ?
? ? 1. Use Call script event command. ?
? ? 2. Type this (replace red green blue alpha with values): ?
? ? $game_player.color = Color.new(red, green, blue(, alpha)) ?
? ? return true ?
? ?? How do I change the angle of an event's sprite? ?
? ? 1. Use Call script event command. ?
? ? 2. Type this (replace id with an event id): ?
? ? $game_map.events[id].color = Color.new(red, green, blue(, alpha)) ?
? ? return true ?
? ?? Example usage? I may still be confused. ?
? ? $game_player.color = Color.new(100, 100, 100, 100);return true ?
? ? $game_player.color = Color.new(200, 0, 200, 255);return true ?
? ? $game_player.color = Color.new(200, 0, 200);return true ?
? ? ?
? ? ? zoom_x and zoom_y. ?
? ?? How do I change the sprite's x-axis zoom level? ?
? ? For players: $game_player.zoom_x = value ?
? ? For events: $game_map.events[id].zoom_x = value ?
? ?? How do I change the sprite's y-axis zoom level? ?
? ? For players: $game_player.zoom_y = value ?
? ? For events: $game_map.events[id].zoom_y = value ?
? ? ?
? ? ? Mirror. ?
? ?? How do I flip character sprites horizontally? ?
? ? For players: $game_player.mirror = true ?
? ? For events: $game_map.events[id].mirror = true ?
? ?? Okay, how do I unflip them? ?
? For players: $game_player.mirror = false ?
? For events: $game_map.events[id].mirror = false ?
????????????????????????????????????????????????????????????????????????????????
? ? Methods Aliased: ?
? ?? update - Sprite_Character < Sprite_Base ?
? ?? initialize - Game_Character ?
????????????????????????????????????????????????????????????????????????????????
? ? Changelog: ?
? ?? Version 1.1 (5/10/09) - Replaced attr_reader with attr_accessor. ?
? ?? Version 1.2 (5/12/09) - Updated the zoom stuff. (More info below) ?
????????????????????????????????????????????????????????????????????????????????
? ? About Version 1.2 change: ?
? Originally, the value '1.0' for properties zoom_x and zoom_y stood for ?
? the character sprite's actual size. I felt like trying to explain that in ?
? the instructions of this script and add-ons made to it would just confuse ?
? some people. So I wanted to make the value 100.0 denote the actual pixel ?
? size of the sprite. ?
????????????????????????????????????????????????????????????????????????????????
=end
#???????????????????????????????????????????????????????????????????????????????
#? ? Customize ?
#???????????????????????????????????????????????????????????????????????????????
class PK8
CharacterSpriteZoom100 = true
# If false, sprite's zoom level value 1.0 would denote actual pixel size.
# If true, sprite's zoom level value 100.0 would denote actual pixel size.
end
#==============================================================================
# ** Sprite_Character
#------------------------------------------------------------------------------
# This sprite is used to display characters. It observes a instance of the
# Game_Character class and automatically changes sprite conditions.
#==============================================================================
class Sprite_Character < Sprite_Base
alias pk8_character_sprite_addons_update :update
#==============================================================================
# ** Game_Character
#------------------------------------------------------------------------------
# This class deals with characters. It's used as a superclass of the
# Game_Player and Game_Event classes.
#==============================================================================
class Game_Character
#--------------------------------------------------------------------------
# * Public Instance Variables
#--------------------------------------------------------------------------
attr_accessor :tone
attr_accessor :angle
attr_accessor :zoom_x
attr_accessor :zoom_y
attr_accessor :mirror
attr_accessor :color
Event Tone, Color, Size, Angle and Mirror [Exclusive]
Hey hey! Not bad! I may incorporate this (at least the size and mirror ones). This would be great for monsters that grow in size before attacking and such.
Event Tone, Color, Size, Angle and Mirror [Exclusive]
I like this, tho I dont have any uses for it atm. =/
Antialiasing would be f'king awesome, but as far as I know it's slow as hell in RGSS. And I dont have a clue how to do it. o.o
But who knows, maybe something for next version? ~.^
v2: Both the Event Angle/Color/Mirror/Tone/Zoom/Wave and the Change Character Properties in frames script were combined into one script. New script calls were thrown in too.
v2.1: Added the optional truth value relative argument for all methods. Useful if you want to add ontosubtract from a character property.
Formerly known as Punk.
He Used To Feel Invincible, But Now He Doesn't Feel At All...