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.

Hour Problem

Nachos

Sponsor

Hey, i'm using GaveUpTomorrow's GaveUpSingle Menu 109.
I copy the script to my game and everytinh works fine. But when I try to load a file, says:
"Script "Day/Nigh" line 369. NoMethodError Ocurred.
Undefined method "get_hour" for nil:NilClass"

Here is the part of the script:

#--------------------------------------------------------------------------
# ● Updates the Array based on time of day
#--------------------------------------------------------------------------
def update
LINE 369 if $game_time.get_hour > 7 and $game_time.get_hour < 14
hide
else
show
end
end

any idea?

i can't load!

IN THE DEMO I DOWNLOADED (GAVEUP) WORKS LOADING, BUT NOT IN MY GAME
 

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