Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rating: Thread Rating: 4 votes, 5.00 average. Display Modes
Old 06-21-2002, 09:48 AM   #1
Member (5 bit)
 
Join Date: May 2002
Location: Mtl,CAN
Posts: 16
Question Projectiles in VB

Im sure this is quite easy but I can't figure it out!
So I have a space ship and I want to fire several shots by pressing a key. How do you do this??? Is one variable needed for every shot? Plz help
AlexDX is offline   Reply With Quote
Old 06-26-2002, 05:02 PM   #2
Member (4 bit)
 
Join Date: Jun 2002
Location: Ohio
Posts: 13
Yeah, keep an array of the max # of projectiles and turn them "on" when fired. Then for each on that is "on" check for collisions and move them, etc.
FieroAddict is offline   Reply With Quote
Old 06-27-2002, 08:03 AM   #3
Professional gadfly
 
doctorgonzo's Avatar
 
Join Date: Jan 2002
Location: Minneapolis, MN
Posts: 6,364
Send a message via MSN to doctorgonzo
It sounds like the perfect use for a class module and creating a shot class.
doctorgonzo is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 12:19 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2