Driving Code

Blitz3D Forums/Blitz3D Programming/Driving Code

- use arrays
- Change the 'mode' system
=> include an increment

if keydown(...) lastmode=mode:mode=10; walk
if keydown(...) lastmode=mode:mode=20; drive
if keydown(...) lastmode=mode:mode=30; fly

select mode
case 10
;record values in the array
value1[LastMode]=value ...
etc...
mode=1
case 20
; record values ...
etc...
end select