I am currently making a very simple 8-bit style game where you run around as a little man that tries to avoid lightning strikes. The only problem is that I don’t know how to make a program (preferably C#) that would make random lightning strikes around this 2D map.
My goal is for there to be a target where is shows where the lightning would strike and then a second or so later the lightning hits in that area. Over time the lightning will spawn quicker. I have already created 3 different lightning strike sprites. If you can help me make a script where the lightning strikes and sprites are random that would be amazing.
In-Game example: Imgur: The magic of the Internet
-Thanks,
Lefty
Here are the links to the lightning bolt and target images:
Imgur: The magic of the Internet : Lightning Strike 1
Imgur: The magic of the Internet : Lightning Strike 2
Imgur: The magic of the Internet : Lightning Strike 3
made on make8bitart.com - Imgur : Target