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.

[VX] Help with transitions with script

I can't get the script "Graphics.transition(80,"Graphics/System/BattleStart",80)" to work as part of an event or even as a script in a battle. I was wondering if someone could find a way to make it work, of something else to allow the use of a transition.

I know little about code, I was given this line by a helpfull fellow, but I can't get it to go. I have made an effort to follow the path the code goes when it starts a battle, and I'm still not sure. I did find a way to make the battle music start before the battle starts, as well as how to unblur the battle back, though I still couldn't find how to unspin it (I know this was done by someone already, but I wanted to see if I could find it.)

Any ideas?

The main place for the code was this:
 def perform_battle_transition
   Graphics.transition(80, "Graphics/System/BattleStart", 80)
   Graphics.freeze
 end
 
Typically, a transition works by 'morphing' the screen from one image (state) to a new image (state).
So, if you do a "Graphics.freeze" first, then change the scene somehow, then execute the transition, you should see it work.

The problem is, if the thing you do to change the scene already has a built-in transition, it will cancel the Graphics.freeze, and your transition won't do anything.

If you try what I suggested, Do a Graphics.freeze, use a couple of Move Route commands to shuffle the events around (set "Wait for completion"), then call the transition, it works.

I guess the question is, what exactly are you trying to do?
 
Well, I think you solved it for me. I thought it wasn't working, but I might have been overlooking it all. I wanted to simulate the battle wipe, but it wan't coming out, all black, so if I freeze, make it all black, then do the wipe, it'll go to all black, then I can fade the black away.

And I just tried it and it works. I just need to work on the timing.

Thanks for the dialoug, I needed that to jump start my brain.

EDIT:

Well, I got it to work on the feild, but not in battle, my end goal it to have a battle within a battle, but I still want to play the transtion in battle, just as it would play if you just entered a battle.

it dosen't seem to want to play transtions in battle.

I could take a snapshot of the screen then display it, end the battle, then reenter a new battle... maybe...

http://img182.imageshack.us/img182/562/samplena8.png[/img]
 
I think Graphics.brightness might not do anything since it's frozen.

Try replacing it with a Fadeout Screen

Also, you might want to do a check to see if Enemy 1 still exists.
If he is dead, the Enemy Transform won't do anything.
 

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