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.

XP: events during a battle without lagg.

Hi! (/lame)
I am trying to add some events during a boss battle, but the lag is awfull. I used a common event to show some text lines and to let hear a sound effect and a small screen shake. But it's impossible to use because of teh terrible lag. Can someone explain how i can add those events during a battle without lag?
thx a lot :)
 

Zeriab

Sponsor

As far as I know there are no anti lag script dealing with this issue. This does not mean there are nothing to do against the message problem in battles.

In fact you can try to go to line 222 in Scene_Battle 1.
The line should be containing
Code:
    if $game_system.battle_interpreter.running?

Try change it to this:
Code:
    if $game_system.battle_interpreter.running? && !@message_window.visible

This change appears to significantly decrease lag when messages are shown in battles.



The section before:
Code:
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update
    # If battle event is running
    if $game_system.battle_interpreter.running?
      # Update interpreter

After:
Code:
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update
    # If battle event is running
    if $game_system.battle_interpreter.running? && !@message_window.visible
      # Update interpreter

*hugs*
- Zeriab
 

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