Ooops, Yes, your right, I forgot the code tag, I did correct it.
The example above is not really a working example, it was only to show that I want to access the cam out of the scope of the if statement. So, the getAPosition is just a random call for the example.
Arras, I appreciate you answering my questions here, I surely do. However, I am looking for something a bit more high level. The problem is that I have several items that need to be carried over, this cam is one of several. Is there not a way to maybe load all the Iscene (objects) ? This would also include your terrain as well!
Right now, I count as many as 17 different things I need to access that are inside the if statement. Maybe there is another way to do this, as it is, this all about learning and if there is another idea on how to do this, it would be great.
When I declare cam outside of the loop as you describe then go through the run while, it crashes with (what I think is an empty declaration) the x0005 something or another. As if it cant utilize the cam info or something. I did try this just experimenting early on but never was able to make that work either.
Any feedback would be appreciated.