Question for making my game

Previous topic - Next topic

Schurmy

alright I just drew my pictures for instance the walk1 walk 2 thing that you did in your tutorial and was wondering how would I be able to have something move across the screen for instance BULLETS?

Kitty Hello

http://www.glbasic.com/files/myfirstgame.wmv shows a very shor demo-game that has "buttelts".

Baggi

Moving something over the screen from left to right,
using screen resolution 640x480:



Code (glbasic) Select
LOADSPRITE "bullet.bmp",0

GLOBAL xpos=0
GLOBAL ypos=100

main:

SPRITE 0,xpos,ypos
   xpos=xpos+1
      IF xpos>=640
          xpos=0
      ENDIF

SHOWSCREEN
GOTO main
I haven't testet it, but I think it should work.