Thanks TBL but it's still not what I'm looking for :)
I want to be able to create a ball within a function called newgame(), and have that ball be referenced anywhere outside of the scope of that function.
Can anyone help me with my other questions? How to check if a variable is set/defined, and how to get a reference to an item in a list assigned to a variable, but without having to loop through the list. The example above with the list worked, but once that item was removed from the list, the game would crash.
I want to be able to create a ball within a function called newgame(), and have that ball be referenced anywhere outside of the scope of that function.
Can anyone help me with my other questions? How to check if a variable is set/defined, and how to get a reference to an item in a list assigned to a variable, but without having to loop through the list. The example above with the list worked, but once that item was removed from the list, the game would crash.