Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

HBGames

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.
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 :
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)

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 !

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top