I want to make game in 2d. Viper.bmp is a sprite with simple car. I need to do camera following my car in 2d... is this possible??
I mean the screen is scrooling when i am leaving it, and i can always see my car. Please help!!
sync on : sync rate 0
set image colorkey 255,0,255
load image "Viper.bmp",999
sprite 1,screen width()/2,screen height()/2,999
offset sprite 1,sprite width(1)/2,sprite height(1)/2
do
if spacekey()=1 then move sprite 1,0.3
if leftkey()=1 then rotate sprite 1,sprite angle(1)-0.3
if rightkey()=1 then rotate sprite 1,sprite angle(1)+0.3
sync
loop
wait key