Breakout clone help

Blitz3D Forums/Blitz3D Beginners Area/Breakout clone help

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

It is just a typo, in the function ballmovement(), change "balx" to "ball_x" and comment out the original upwards movement:
;This function is activated from the "Move=" code if the = value is 1 this is activated
Function ballmovement()
    If move=2 Then ball_y = ball_y + -20
;    ball_y = ball_y + -10
    ;If ball_y=0 Then ball_y=880 ball_x=player_x+40 move=0

ball_x = ball_x + bal_xdir*5
ball_y = ball_y + bal_ydir*5

If ball_y < 0 Then bal_ydir = 1
If ball_y > 1040 Then bal_ydir = -1
If ball_x < 0 Then bal_xdir = 1
If ball_x > 1670 Then bal_xdir = -1


End Function