S
Steve Potts
Guest
Hi folks, start of create event I run this code :
x = 500 ;
y = 500 ;
direction = irandom_range(0,359);
speed = 4 ;
ballcolour = irandom_range(1,4)-1 ;
The ball always moves in same direction and is always the same colour at start.
I use direction = irandom_range(0,359) ; later in another create for an object and it moves in any random direction.
Why does it work later but the 1st does not ?
Cheers.
x = 500 ;
y = 500 ;
direction = irandom_range(0,359);
speed = 4 ;
ballcolour = irandom_range(1,4)-1 ;
The ball always moves in same direction and is always the same colour at start.
I use direction = irandom_range(0,359) ; later in another create for an object and it moves in any random direction.
Why does it work later but the 1st does not ?
Cheers.