Why is this in PureBasic a constant. Can it be made to an Integer variable.
This I found out becaus i try to use the step with a variable but PB will not allow this.
Code: Select all
X2=x1+35*dx
dx=dx*4
DisplayTransparentSprite(BombSprite(0),x1,y1)
For i=x1 To X2 Step dx ;<-- this is a variable while PB want it to be a constant
DisplayTransparentSprite(BombSprite(0),i,y1)
DisplayTransparentSprite(BombSprite(0),i + dx,y1)
Next