Hey i am wondering why i can't call Objects and Variables numbers?
Example: I can call a Sprite 001a but not simply 001.
And Variables can't be called numbers at all...
Why is that?
Was thinking of working on a -Save -Load mechanism similar to WC3 Orpg Maps.
Develop games in your browser. Powerful, performant & highly capable.
because numbers are viewed differently by the computer when accessing things. Its always been bad programming to use numbers at the beginning of names if at all.
set X to 001 * 1
Am I referring to the variable or the number? Who knows...
Sqiddster's correct :) It's to remove ambiguity. Naming something as a number is also probably bad practise as it's not very descriptive
This is the same as any scripting or programming language you'll ever use. Names cannot be numbers - if you name an object "1", how does the parser understand 1 + 1? :P
Yeah that was my only problem with the idea 2 ^^
But i figured.. you knoooow.. Wing it xD
Thx for replies ^^
It doesn't matter at the moment anyway, I have all hands full learning Blender at the Moment :)