View Single Post
Old 03 June 2018, 19:40   #16
Dan
Registered User
 
Dan's Avatar
 
Join Date: Nov 2004
Location: Germany
Posts: 629
Or you divide the Main Loop into 2 sections/part.

The First section/part does the movement
The Second section/part does the collision check

something like

Code:
a=1
;main loop
do
 a=-a
  if a=1 
    PlayerMovement()
    Enemymovement()
    Playerbullets()
    Enemybullets()
  else
    CollisionCheck() 
  endif

flip ; or whatever the blitz uses to redraw the screen.
loop
Sadly i'm familiar only with the PC's version of Blitzbasic ...

Last edited by Dan; 03 June 2018 at 19:47.
Dan is offline  
 
Page generated in 0.04529 seconds with 11 queries