Forget types! lol. I'm still having problems with variables!
-I have a function "InitialiseCollision()" in my included file.
-First thing I do is run "InitialiseCollision()" in my main source.
-All the array definitions in InitialiseCollision() are all prefixed with "global". e.g.
global Dim BounceCollisionXSpd#(1) as float
-This is compiles fine and works, but whenever I try and reference them from within the main source file, it doesnt work.
Example:
position object 1, SlidingCollisionX#(1),SlidingCollisionY#(1),SlidingCollisionZ#(1)
These variables exist and are defined. It doesnt even say they're not, the actual error is:
"Parameters for "Position Object" do not match format blah blah blah"
Its blatently the right formatting. I can retrieve info from the variable using an assignment statement:
a# = SlidingCollisionZ#(1)
Although I havent tested to see if they're actually successfully holding values.
Basically, I dont know whats going on! Anymore ideas? I dont want to have to assign all my variables into temporary variables before I use them in other statements. I kinda have the feeling the variables wont be holding the values properly either.
Machine: P4 2200, 1GB RAM, GeForce4 64MB, Audigy Platinum
http://www.breakbeat-terrorism.co.uk
(It's not all about the coding)