I'm currently making a game that has a really simple battle scene where you (as the player) will choose from 4 different moves and attack the opponent. When dealing damage/or when you're attacked, the screen shakes while flash is going on (and an attack sound effect will occur).
It's similar to Anghel's battle in Hatoful Boyfriend (Link is a bit spoilery) https://youtu.be/7AaNUyZYpTo?t=42s
I tried to make an init block to combine a shake effect with flash, but in the game, one effect would work while the other one wouldn't.
Code: Select all
init:
define fflash = Fade(0.1, 0.0, 0.5, color="#fff")
init:
$ sshake = Shake((0, 0, 0, 0), 1.0, dist=15)
init:
define flash = Fade(.25, 0.0, .25, color="#fff")
define quickflash = Fade(0.1, 0.0, 0.5, color="#fff")
define attack = ComposeTransition(sshake, quickflash)Thank you :U