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.

Poison Flash

When a Hero is poison on the Map the screen flashes Red every 1 step, Where can I alter where is can only poison flash flashes every 15 steps
 
Try this:
Code:
# Steps holds the number of steps to wait till the flash is done
class Game_Player
Steps = 15
#--------------------------------------------------------------------------
  # * Increaase Steps
  #--------------------------------------------------------------------------
  def increase_steps
    super
    # If move route is not forcing
    unless @move_route_forcing
      # Increase steps
      $game_party.increase_steps
      # Number of steps are an even number
      if $game_party.steps % Steps == 0
        # Slip damage check
        $game_party.check_map_slip_damage
      end
    end
  end
end

Haven´t tested, use at your own risk! >;-)

EDIT: Worked lol xD
 

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