I have this
but it doesn't set it to anything but variable "0" for "Type".
If I force a number like 1 or 2. It loads properly in...
I would take the for each EnemyCntrl out of the nested loop and have a separate event, on EnemyCntrl created > set type to random (0,2) but that's just me.
System expressions
[quote:1is081g3]random(x)
Generate a random float from 0 to x, not including x. E.g. random(4) can generate 0, 2.5, 3.29293, but not 4. Use floor(random(4)) to generate just the whole numbers 0, 1, 2, 3.
For any floating point number: random(2)
If you only want integers floor( random(2) )
Develop games in your browser. Powerful, performant & highly capable.
Well I did this...
still doesn't seem to work... it doesn't seem to affect the new spawning ones
System expressions [quote:22pzzeof]random(x) ...Use floor(random(3)) to generate just the whole numbers 0, 1, 2,
[quote:22pzzeof]random(x)
...Use floor(random(3)) to generate just the whole numbers 0, 1, 2,
> System expressions > > [quote:jwm1y89d]random(x) > ...Use floor(random(3)) to generate just the whole numbers 0, 1, 2, >
> System expressions
>
> [quote:jwm1y89d]random(x)
> ...Use floor(random(3)) to generate just the whole numbers 0, 1, 2,
Oh "floor" isn't just a random object word? I thought it was an example... uh I'm dumb...
I appreciate everyone putting up with me here.
EDIT:
Seems to be affecting only one area now...