Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Visual Basic Forum for Visual Basic Programmers VB Forum Index » Direct X / Game Programming

Post new topic   Reply to topic
Projectiles help!
View previous topic :: View next topic  
Author Message
Archonius
Newbie


Joined: 22 Aug 2005
Posts: 7

PostPosted: Aug 22nd, 2005 06:04 AM    Post subject: Projectiles help! Reply with quote

Hey all,

I've recently started making a space arcade game where you have a birdseye view of a spaceship and you move around shooting things. I've got my ships movement perfect but I just cant figure out how to make the projectiles/bullets.

I've been toying with the idea to create an image/s infront of the space craft when someone presses fire and moving the image along a certain projectory, using the code:
Code:
Form1.PaintPicture LoadPicture("shipright.gif"), 400, 400, 400, 400

But this seems to just create an image on the background without me being able to play with it.

If anyone has any idea of how i can create a projectile please let me know.

Robert Bowen

(ps. I've heard a few people around here using directx in gaming. I dont know how to use this. I know i should be learning but I really want abit of gaming experience under my belt as quickly as possible. I've already made simple things like minesweeper, networked snake, tetris. Im off to uni soon to study computer games programming. Hopefully i'll learn directx there :sick: )

(pps. I use vb 6)
Back to top
View user's profile Send private message Send e-mail
DoobieKeebler
Moderator


Joined: 17 Jun 2005
Posts: 254
Location: 181°15'2.003"W, 93°5'16.956"N

PostPosted: Aug 22nd, 2005 09:05 AM    Post subject: Reply with quote

Without taking you down a completely different path, animation usually takes the form of draw, erase, draw, erase, etc. After a brief time, erase the image from where you put it and draw it somewhere else. I haven't done this myself but since you have half of it covered the erase part shouldn't be too hard to get.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Visual Basic Forum for Visual Basic Programmers VB Forum Index » Direct X / Game Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Visual Basic Forum runs phpBB | Forum Template © iOptional
VB Resources | SSL | Visual Basic