GLBasic forum

Main forum => GLBasic - en => Topic started by: Schurmy on 2006-May-21

Title: Question for making my game
Post by: Schurmy on 2006-May-21
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?
Title: Question for making my game
Post by: Kitty Hello on 2006-May-21
http://www.glbasic.com/files/myfirstgame.wmv shows a very shor demo-game that has "buttelts".
Title: Question for making my game
Post by: Baggi on 2006-May-22
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.