There are several ways to do this. That is one way.
Another is to calculate the new x and z coordinates and position there.
if leftkey()
position camera newxvalue(camera position x(), 270.0, 0.5), 0, newzvalue(camera position z(), 270.0, 0.5)
endif
if rightkey()
position camera newxvalue(camera position x(), 90.0, 0.5), 0, newzvalue(camera position z(), 90.0, 0.5)
endif
A third way is to get my Matrix1Extend1 plug-in that adds the move left/right/up/down commands to cameras
if leftkey()
move camera left 0.5
endif
if rightkey()
move camera right 0.5
endif
*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins, source and the Interface library for Visual C++ 6, .NET and now for Dev-C++
http://www.matrix1.demon.co.uk