▲ 0 r/gamemaker
Randomly select an instance from an array
Hi, so I'm completly new to gamedev (literally downloaded gamemaker two days ago) and I'm running into an issue.
Basically, in the game there are multiple lasers and i need a random one to change sprite
This is the code I've written up until now
But instead of only changing one of them, it changes 4 of them
If I replace "irandom(5)" with an integer it works exactly as expected
How do I fix this?
u/lTZ-KK — 2 days ago