you can use
inc var
or
inc var,val
but I wasn`t aware of your level of competence since we have have had some self proclaimed code experts pop up on the forum from time to time who don`t even understand variables
built in functions for movement are mostly in the 3D command set, you have
pitch object up/down
roll object left/right
turn object left/right
move object
pitch roll and turn use angles as the argument, move uses world units eg
move 1,0.01
move 1,12
move 1,-2
etc
the random numbers are created as in all languages by an algorythm that starts with the same seed unless you use the command
randomize var
var is often the system timer (timer() ), but you can use any variable you like, for example if your levels are created randomly, you could use the level number to ensure that the same levels occur each time the game is played, normaly you just call randomize the once at the start of the code.
perspective and other effects are handled by directx anyway, so you don`t need to worry about that, you can move objects into and out of the screen and they scale etc correctly, the tricky bit is when you want to override these effects, the system timer is slightly different from say VB, you have the one function
timer()
and it is best thought of as a clock you can check, it updates every 1000th sec, if you want to do the same as VB where you set an event to happen after so long (say 5 seconds), you have to keep checking the timer value, since it counts in m/secs then 5 seconds = 5000, so you get the time at the time you started the wait and add 5000
t=timer()+5000
for example, then you check for the timer PASSING the value in t, eg
if timer()>t
print "alarm call"
endif
and then act on the event, you can`t check for an exact match, eg
if timer()=t
since it may be that the system was busy when timer()=t and at the next check timer()=5001, so it would never trigger since timer() would just keep getting larger than t, hope thats some help, cheers.
Mentor.
PC1: P4 3ghz, 1gig mem, 3x160gig hd`s, Radeon 9800pro w cooler (3rd gfx card), 6 way speakers.
PC2: AMD 2ghz, 512mb ram, FX5200 ultra, 16 bit SB.
Mini ATX cases suck.