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.

Guess the error

Hello,
Code:
#==============================================================================
# * Scene_Skills
#==============================================================================
class Scene_Skills
  #--------------------------------------------------------------------------
  # * Main Processing
  #--------------------------------------------------------------------------
   def main
    @window = Window_Skills.new
    Graphics.transition
     loop do
      Graphics.update
      Input.update
      update
      if $scene != self
        break
      end
    end
    Graphics.freeze
    @window.dispose
  end
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update
    @skills_window.update
    
  if Input.trigger?(Input::B)
    $scene = Scene_Map.new
    return
  end
end
Its a syntaxerror, and I cant find it.

~Smiff
 
Omg ty, did have to find it myself. Can you help me again?
For my system you get xp when you catch a fish, stored in an event variable. But, with this scene and a window, I show the lvls you have now. But the point is, as with every salmon you fish you get a random between 4 and 6 xp, you get after a while an insane ammount of exp... How can you make a formula to change the xp to a level? Thanks!
 

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