Please login or register.

Login with username, password and session length
Advanced search  

News:

This forum provides RSS feed. To query recent posts use this url. More...


Author Topic: globals  (Read 1314 times)

0 Members and 1 Guest are viewing this topic.

Uhfgood

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 117
  • No pain, no game!
    • View Profile
    • Indie Flux
globals
« on: July 20, 2007, 11:22:46 PM »

I was trying to define a global, only whenever i ran the program the game would report "[global] referenced but not used".  In the docs it doesn't say you need to add the declaration of the global to the script it's in.  In other words you need to have global myInt = 10; in one script, but if you want to use it anywhere else you need global myInt; in any other script file that needs it.  I figured this out by searching through the forum, but you may want to correct it in the docs or else make it truely global.

Keith
Logged
--------------------------------------------
Keith Weatherby II
uhfgood -AT- frontier -DOT- com
Games Afoot Software
Indie Flux - Previews, Reviews, News and more!
--------------------------------------------
 

Page created in 0.125 seconds with 18 queries.