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.

calling a script?

I'm creating a waypoint system for a game project.

However, I have one problem.

I don't know how
to call a script
example is
you use the script command and put in
Code:
$game.system.Waypoint.new>0.1<
how would i do this?
Not creating the script, calling it.

Anyone?
 

khmp

Sponsor

Is Waypoint an attribute of Game_System? I don't think it can be capitalized or it will be treated as a constant. I think you want something closer to the code below. If inside class Game_System you have something like attr_accessor :waypoint

Code:
$game_system.waypoint = 
  Waypoint.new(0,1)
 

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