u/lTZ-KK

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

https://preview.redd.it/t00ve5hfe7bh1.png?width=632&format=png&auto=webp&s=77621996f3991238da82949fbabcfe137e28081e

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?

reddit.com
u/lTZ-KK — 2 days ago
▲ 1 r/Lenovo

Horizontal black line appeared on screen

Hi, so a few weeks ago, this horizontal black line appeared on my laptop screen and it seems to be growing. How do I fix it?

reddit.com
u/lTZ-KK — 1 month ago