Acid Cool
Newcomer
I have a problem whit this part of the code:
I know I can write it like this too:
But it doesn'z work one way or another....
I want this code to copy array of for example 5 (dim boat.xp(5)) one step backwareds
Example:
the first value (0) will be changed later on in the code...
How do i doo this????
What is worng with my code????
Code:
For blur = 1 To maxBlur
boat.xP(maxBlur - blur) = boat.xP(maxBlur - blur + 1)
boat.yP(maxBlur - blur) = boat.yP(maxBlur - blur + 1)
Next
I know I can write it like this too:
Code:
For blur = maxBlur To 1 Step -1
boat.xP(blur) = boat.xP(blur - 1)
boat.yP(blur) = boat.yP(blur - 1)
Next
But it doesn'z work one way or another....
I want this code to copy array of for example 5 (dim boat.xp(5)) one step backwareds
Example:
Code:
(0, 1, 2, 3, 4, 5) --> (0, 0, 1, 2, 3, 4)
the first value (0) will be changed later on in the code...
How do i doo this????
What is worng with my code????