Quote: "Here is a code to help those who want to understand camera and object movement commands..its very basic..."
Hmmm... yes it is.
The idea of this board is to post helpful code snippets which benefit others, covering things that can't be gleaned in a few minutes from the help files.
More importantly, I think your snippet might confuse beginners - it did me and I've been out of beginner status a while:
Quote: "turn off the autocam, then make your own freecam"
What's are 'autocams' and 'freecams'? The default camera does everything a camera you create can do, so why do you create camera 1?
Quote: "position object 1, 0, 0, 0"
It's already there when you create it, so if you aren't using position variables or need it to be somewhere other than 0,0,0 it's not necessary to position it.
Quote: "key control using w,a,s,d"
W and S keys do nothing.
Extraneous code:
if inkey$()="z" or inkey$()="Z" then move object 1, 1.25 : move camera 1, 1.3
if inkey$()="x" or inkey$()="X" then move object 1, -1.25 : move camera 1, -1.3
if inkey$()="a" or inkey$()="A" then roll object left 1,1
if inkey$()="d" or inkey$()="D" then roll object right 1,1
if inkey$()="m" or inkey$()="M" then turn object right 1, .4 : turn camera right 1, .5
if inkey$()="n" or inkey$()="N" then turn object left 1, .4 : turn camera left 1, .5
Better:
do
I$=Upper$(Inkey$())
if I$="Z" then move object 1, 1.25 : move camera 1, 1.3
if I$="X" then move object 1, -1.25 : move camera 1, -1.3
if I$="A" then roll object left 1,1
if I$="D" then roll object right 1,1
if I$="M" then turn object right 1, .4 : turn camera right 1, .5
if I$="N" then turn object left 1, .4 : turn camera left 1, .5
`let it know youve completed commands for this loop.
loop
These are admittedly minor points but do add to the confusion if you are a beginner.
The biggest problem of all though is that the snippet doesn't do what it says it does - or I misunderstand the exercise completely and it does - but does something so strange that I can't imagine anyone ever having a use for. (I'm happy to take it back if anyone can suggest a use for it).
Quote: "key control using w,a,s,d to make the cube object and the camera follow in the same motion"
When you run the program, if you use the Z key, the camera continues despite the cube stopping at the spheres. Reversing back doesn't get the cube back.
Sorry - I just don't get it!
TDK_Man