Character Transitions (More eye-candy !)

Hi everyone.
I know I should work on my old scripts, but I wanted to do something new, add some nice eye-candy to rmxp, the usual stuff.

[NOPARSE][Steve_Jobs_wanabee_mode][/NOPARSE] Until today, when you wanted to change your character's graphics or making here disappear, the options weren't numerous : you could change them abruptly, or try to fade them. On the other side, you could use transitions from scene to scene the way you wanted to. But today I'm introducing a brand new way to animate your characters, the character transitions ! [NOPARSE][/Steve_Jobs_wanabee_mode][/NOPARSE]

Okay, I'm not really good at presenting things, so here's a nice picture to explain what the script does.
Content Hidden Spoiler
Take this (the whole charset, actually, you don't have to edit anything) :
http://rataime.free.fr/rmxp/Demos/018-Thief03.png[/IMG]
Add that :
http://rataime.free.fr/rmxp/Demos/random.png[/IMG]
Get that, animated in the game, of course (I didn't wanted to generate a .gif) :
http://rataime.free.fr/rmxp/Demos/018-T ... _02_21.png[/IMG]


Example two :
Content Hidden Spoiler
Take 075-Devil01 and 088-Monster02
Add this :
http://rataime.free.fr/rmxp/Demos/circle-in.png[/IMG]
Receive that :
http://rataime.free.fr/rmxp/Demos/075-D ... _06_21.png[/IMG]


Instructions (Straight from the script, I'm lazy)

Content Hidden Spoiler
This script allows you to generate and use characters transitions, ie going
from one character sprite to another (or a blank one) in the same way you
can use transitions from one scene to another. All you will need is a
transition file like those for maps, but smaller.

Given that the Bitmap class is not really powerful, I'm using an external
binary from ImageMagick called convert.exe. The first time you request a
specific animation (example : 001-fighter01 to 002-fighter02 facing down using
a circle transition), the animation bitmap will have to be generated. You'll
see quite a lot of terminal windows opening and closing, this is quite ugly,
but the good news is you can delete convert.exe if you're sure you have
generated every transition you need.

To start a transition, first configure a new animation. Its name must be
transition_to_character, where transition is the transition name and character
the final charset name. Example : random_to_002-Fighter02. You can use 'none'
without the quotes to make your sprite dissapear. The number of frames of the
animation will be the number of frames of the transition (shortcut : 1=>21)
Then, after adding this animation's id to the CHARACTER_TRANSITION_ANIMATION_LIST,
playing it over a character will start the transition.

Additionnal notes :

- You may want to prevent the player/event from moving during an animation.
The animation will be displayed where the animation was started, but it
doesn't automatically prevent the hero (or any other event) from moving.
- Regarding encryption, the script cannot generate new transitions from
encrypted archives. However, it'll play previously generated transitions
or generate transitions from RTP sprites or local folders just fine.
- You should use a transition and characters of the same size. It might work,
but I don't want to know what will happen otherwise (weird things, probably)
- The script assumes everything is PNG. You should use PNG anyway.
- The script needs the events to have been properly loaded and displayed once.
Just use a wait 1 frame to prevent the script from crashing
- There should be no lag from using the transition, only from generating it.


Given that it needs an external binary (convert.exe), that you should try the demo and that you'll need the transition files anyway, here's a link to the demo. Take the script from it :
http://rataime.free.fr/rmxp/Demos/rataime_character_transition_demo.zip (v1.1)

If you create nice transitions, you might want to share them in this thread :thumb:

Enjoy !
WOW, great job!

I've been looking for a script like this for awhile, I'm using a tactical battle system, and I've been looking for a way to give units effective fade-ins/outs.

Although for some reason I'm getting a script-hang in the demo on everything on the right-half of the demo, the fish, sign, and imp on the left side work fine.
That looks pretty awesome! Dont have the time to download, but when i get the time i deffinately will.
Kemuri, it's right in the script : if it's hanging, there's a variable inside the script you can trigger to prevent that.
cool script, but im having the same problem as Kemuri and i changed the variable to true and it still hangs or freezes up. my computer is not slow so that's not the problem. i'll play around with it some more to figure it out but i'm not having much luck. if you want me to try something i will.
Hum... Did you see a black window appear before the crash ?
This is a rather cool script rataime, i might have to use this in my game :)

Well done ^_^
Nice script Rataime, very nice.
Everything works fine, except the animals on the right side of the map, it showed a black screen (Cmd.exe) several times and crashed (Script is hanging), apart from that, its nice. :)
This script makes me want to create "character transitions" and submit them in the resources forum. I think this is pretty freaking innovative. You rock. Thanks alot.

Edit: Okay, I reread the first post...submit them here? Ok. :)
sweet...
Well done, this will be great for my game.
Well done indeed.
OooO, very nice, i might have to use this, i do alot of changing characters around, so this is perfect, GREAT JOB!!
THIS IS THE ANSWER TO MY PRAYERS

[QUOTE=Mac;208705]This is a rather cool script rataime, i might have to use this in my game :)

Well done ^_^[/QUOTE]

*cough*andmytimetactics*cough*system*cough*fordeaths*hack**choke**ded*
OK, setting the anti-hanging variable to true worked, don't know how I missed that when I looked through the script >< Side note though: My computer is very fast (3.0 ghz, 2 gigs of DDR RAM), so I don't think that's what was causing it to hang, either way it fixed it.
oh my i like this allot o.o
WOW, Useful :D VERY VERY useful
this is definately going into my game, your scripts are always the best for eyecandy rataime
Quote:
OK, setting the anti-hanging variable to true worked

YES ! I didn't know what to do if this failed :)
I guess I should set that to true by default. It's not only a question of raw power, it can depend on things like hard-drive speed and luck... Unplugging my laptop slows the program enough to make it hangs >_<
If i speak to the sing oin the right, 100ts of windows ( black ) will open and the after 10 Seconds the Message "Script is hangin" will be shown..

What?s wrong?
Yeah thats a nice script, but i keep getting errors with non rtp characters.
I get the message: Error in character transition: File "whatever".png not found.
Even if I put the character graphic into the rtp folder i get this message.
It works with all rtp charas though.. any idea?

@Sir Lord Biowulve
this error was discussed above and solved.
Quote:
@Sir Lord Biowulve
this error was discussed above and solved.


not for me.. i?ve done everything.. switches the varaible to true... check alle settings..etc.. nothings works...

Kuri$u has the same fault..
Maybe you should make one for like teleporting? Like on DBZ or Naruto..Like when they dash and dissappear and re-appear somewhere else?
Thats actually really cool. I think I'll use it. :)
[QUOTE=McP;209206]Yeah thats a nice script, but i keep getting errors with non rtp characters.
I get the message: Error in character transition: File "whatever".png not found.
Even if I put the character graphic into the rtp folder i get this message.
It works with all rtp charas though.. any idea?[/QUOTE]

I get this same error. I have no idea what could be causing it.

EDIT: Thanks rataime. Your scripts make everything sexier.
Probably a case of bad coding >_<
I'm going to fix that.
I have updated the demo to version 1.1 (link in the first post)

You now can load from a local file (a single dot was missing in the script >_<)

The hanging prevention is on by default, and an additional one can be activated at the cost of creation speed.
Thanks rataime. Works fine now. Your timing with this script was great.
You deserve some praise as well, I got the idea while seeing Sparrow's moves. This is why there's a thief guy in the demo...
Whoa. This looks neat, rataime! How do you keep comin' up with these crazy scripts? Kudos.
heya, gr8 script.

This'll sound dumb but why cant you make them all pre-generated?

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=20809