Wondering if anyone knows how to make the enemy laser go to a random sprite besides my ship? Like i have 3 rows of enemies and i want the laser to go to a random one and shoot down at me.
Offline
Just add a random operator in the script that tells the laser where to go.
Like:
Set Lasertarget [(Pick Random <1> to <2>)]
If Lasertarget = 1
Glide to X X of Playersprite) Y Y of Playersprite)
End If
If Lasertarget = 2
Glide to X:(Pick Random <-250> to <250>) Y:(Pick Random <-150> to <150>)
End If
Make sense?
Offline