Pre-battle animation
Moderators: marionline, SDHawk
Pre-battle animation
Hello all, I was wondering if there is any way to implement a short animation that happens directly before a battle every time, like in pokemon. Also if this is possible, would you have to write a script for each individual battle or could you somehow make it universal? Thanks.
Use an instead-of-battle script. This script is called for random battles triggered by the foemap. (If you want to trigger a battle from a textbox, you would have to make the textbox call a script instead of using the Battle conditional). The script receives two arguments: the battle formation and the battle formation set. So you can do the animation before triggering the battle:
The instead-of-battle script can be set either per-map, or globally in the Special Plotscripts menu.
Code: Select all
plotscript, trigger battle, formation, formation set, begin # Don't need the second arg
# Put animation code here, for example, to cycle through 5 backdrops...
variable(backdrop)
for (backdrop, 10, 14) do
# If you want backdrops to be transparent, use backdrop sprite slices instead
show backdrop(backdrop)
wait(2)
)
show backdrop(-1)
fight formation(formation)
end
The instead-of-battle script can be set either per-map, or globally in the Special Plotscripts menu.
Last edited by TMC on Sat Jul 21, 2018 5:13 am, edited 1 time in total.
- sheamkennedy
- Liquid Metal Slime
- Posts: 1110
- Joined: Mon Sep 16, 2013 9:29 pm
- Location: Tama-shi, Tokyo, Japan
- Contact:
Re: Pre-battle animation
It can be universal...TheMan wrote:...or could you somehow make it universal? Thanks.
I love the pre-battle animations in Pokemon! Far too few games do this... I think you should also add some sort of intro tune/sound effect during the animation too. For example in Pokemon Red/Blue/Green version when the animation occurs there is sort of a little intro melody. Then the actual battle has it's own song loop which fits nicely with that intro melody (yet we never hear the intro melody loop again).
Last edited by sheamkennedy on Sat Jul 21, 2018 12:50 pm, edited 1 time in total.
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
â� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
â� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
- sheamkennedy
- Liquid Metal Slime
- Posts: 1110
- Joined: Mon Sep 16, 2013 9:29 pm
- Location: Tama-shi, Tokyo, Japan
- Contact:
EDIT: Never mind you fixed it. Looks good!TheMan wrote:...I've attached a gif of a mockup for it
I think your gif failed to attach.
Last edited by sheamkennedy on Sat Jul 21, 2018 6:14 pm, edited 2 times in total.
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
â� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
â� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
- sheamkennedy
- Liquid Metal Slime
- Posts: 1110
- Joined: Mon Sep 16, 2013 9:29 pm
- Location: Tama-shi, Tokyo, Japan
- Contact:
I agree, pure white is bad. This is because it strains the eyes. Also if in the future you wish to add new things like snow, ice, windows (or anything that’s shiny, sparkling or reflective) then this problem will become evident.TMC wrote:Also I strongly recommend using a bright grey or other shade instead of the brightest shade of white possible.)
Asides from that looks great!
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
â� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
â� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases