Hudell Character Effects

Hudell

Dog Lord
Veteran
Joined
Oct 2, 2014
Messages
3,545
Reaction score
3,715
First Language
Java's Crypt
Primarily Uses
RMMZ
Hudell Character Effects

https://github.com/Hudell/scripts/blob/master/standalone/character_effects/character_effects.rb

This simple script will let you show some effects on the player or on an event.

There are currently 3 main effects available: shaking, rotating and flashing.

Shaking:

$game_player.shakeYou can pass three different parameters to it: offset_x, offset_y and frames.

offset_x determines how much the character will move horizontally when shaking (Default is 0.3, equivalent to roughly to 10px)

offset_y determines how much the character will move vertically when shaking (Default is 0.3)

frames determine how long the character will shake. (Default is 30 frames)

Flashing:

$game_player.flash(10)or$game_player.flash_loop(10, 6)The first script call above will flash the player for 10 frames. The second will do the same thing 6 times.

You can pass additional parameters to change the alpha or the color of the flash, in this order: alpha, red, green, blue. The default is 255 to all of them.

Rotating:

$game_player.rotate(360, 60)This script call will rotate the player 360 degrees and it will take 60 frames to complete the rotation.

You can change the center of the rotation with those two script calls:

$game_player.origin_x = 20$game_player.origin_y = 10The default origin values are 0, set it to a larger value to move the rotation center right/down, or set it to a larger value to move it left/up.

If you change the origin, be careful, as the player/event won't trigger collision or other events if any of the origin values is not zero.

As usual, you're free to use this script on any kind of project you want.
 

LynX

Veteran
Veteran
Joined
Jan 6, 2014
Messages
81
Reaction score
8
First Language
Polish
Primarily Uses
$game_player.flash(10 255 255 255 255)


Hi really nice job ! 
I have a question how flash with diffrent color ? what would the script call look like ?
ok i get it, it looks like that:
 

Code:
$game_player.flash(10 255 255 255 255)
 
Last edited by a moderator:

UndeadGamez

Poison Dart
Member
Joined
Jan 15, 2016
Messages
24
Reaction score
2
First Language
English
Primarily Uses
N/A
how would i place this into an event and make just the event itself shake for 1 or more seconds?
 

McCFaith

McCFaith
Member
Joined
Dec 27, 2018
Messages
1
Reaction score
0
First Language
English
Primarily Uses
RMVXA
Super helpful! I'm new to this kind of thing, but this was pretty simple..! Anyways, when my character is in the middle of the map, it looks like the whole screen is shaking. But being in the corners seem fine and only the character shakes then. Is there a way to fix this or am I stuck with it? Or is there a way to lessen the effect? I'm using:

$game_player.shake(10, 0, 60)

I super thank you for the effects!
 

cokes1999

Veteran
Veteran
Joined
Jun 17, 2020
Messages
54
Reaction score
4
First Language
English
Primarily Uses
RMMV
Does this script no longer work with the latest version of MV? Perhaps I had the file name wrong.... it is character_effects.js correct?
When I call the default shake script nothing happens.
 

Hudell

Dog Lord
Veteran
Joined
Oct 2, 2014
Messages
3,545
Reaction score
3,715
First Language
Java's Crypt
Primarily Uses
RMMZ
This script was for Rpg Maker Vx Ace.
 

cokes1999

Veteran
Veteran
Joined
Jun 17, 2020
Messages
54
Reaction score
4
First Language
English
Primarily Uses
RMMV
This script was for Rpg Maker Vx Ace.
Ah. That makes more sense. Do you know of other plugins for MV that could achieve such shaking for events? Having trouble finding one.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,860
Messages
1,017,040
Members
137,569
Latest member
Shtelsky
Top