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.

transitions

I've found scripts similar to this, like random battle music, but I was wondering if anyone could make a script for random battle transitions? like instead of you selecting that single transition for battles, it chose one randomly out of a list at the start of every battle? thanks for anyone who tries =)
 

poccil

Sponsor

Use the script code below.  Put it just before the last section in the script editor.

Code:
class RPG::System
 def battle_transition
  # You can add more transition files here.
  transitions=[
   "001-Blind01",
   "002-Blind02",
   "003-Blind03",
   "004-Blind04",
   "005-Stripe01",
   "006-Stripe02",
   "007-Line01"
  ]
  return transitions[rand(transitions.length)]
 end
end
 

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