Games Programming with Visual Basic lesson 6 - Multiple enemies using Picturebox arrays

preview_player
Показать описание
In this tutorial we learn to program multiple bugs by adding all the bug pictureboxes to a bug array, so we can repeat the same instruction for all bug objects (to follow the player around, and subtract lives when any one of them collide with the player).

Completed game can be downloaded here:
Рекомендации по теме
Комментарии
Автор

Thank you from Argentina! I have been searching how to build a picturebox array for a year.

alexandropalacios
Автор

I think this would've been a lot more impressive had you used three different colored bugs, say GreenBug, YellowBug, and RedBug versus cycling through three identical red bugs. Also, set their backgrounds to transparent so they actually look rounded and not squarish. And finally, having enemy objects come at your player based on your position is hardly considered smart AI. You need to limit how far your enemy bugs "see" you to make them appear brighter in their thinking. Perhaps they don't come alive and lay chase until you're within 25 pixels of them for instance.

brianbrewster
Автор

I think I found some bugs in this program...  ; )

AlienScribble
join shbcf.ru