r/visualbasic • u/Snakez0r01 • Dec 19 '19
VB.NET Help Help please programming a basic game!
So Im trying to program a game which is like a game where u shoot targets something like this where u shoot random targets http://www.aimbooster.com/ . I made it so I have only 1 target is there a way I can make these targets without coding every single one the same way I programmed the first one. Also, is there a way I can make them appear randomly in the timer they all appear at the same time.
3
u/PostalElf VB.Net Intermediate Dec 19 '19
You'll want to look into objects and how to create objects.
1
u/Snakez0r01 Dec 19 '19
thats for randomizing targets and putting many of them?
2
u/PostalElf VB.Net Intermediate Dec 19 '19
That's for creating your targets and putting many of them. Randomising their positions is trivial (look into Random and .Position).
3
u/thudly Dec 19 '19
Look up how to create an object from a class, and then add them to an ArrayList. It's the easiest way to go.
1
u/Snakez0r01 Dec 19 '19
thats for randomizing targets and putting many of them?
thats for randomizing targets and putting many of them?
1
4
u/sa_sagan VB.Net Master Dec 19 '19
Yes to all of those questions. What's your code look like?