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.

Caterpillar Script Problem (file included)

khmp

Sponsor

This is a problem created by improper script installation. The caterpillar code was just pasted in above Game_Player. This is the cause of the error.

Code:
class Sea_Monkey
  alias_method :old_entertaining, :entertaining 
  
  # I can't alias a method that hasn't yet been declared.
  # [poor analogy]It's kind of like calling dibs on a piece of chocolate 
  # that is currently in someone else's hands.[/poor analogy]

  def entertaining
    old_entertaining
    p 'Wee'
  end
end

class Sea_Monkey
  def entertaining ; end
end

The reason it crashed is because Spriteset_Map's create_characters method is below where the alias method is occurring. To remedy this I just ripped it out of where it was originally(Game_Player) and placed it into it's own section below Materials. Please refer to the RGSS/RGSS2 FAQ in this forum section to see how scripts should be installed. Here is the updated Scripts.rvdata file.

Good luck with it kimpoy2006! :thumb:
 

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