|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I am currently in grade 10 but am in a grade 11 computer programming class. For our final project we are required to make a game. I am making a version of Space Invaders but I have a major problem. I need to know how to make the program - when i hit spacebar - to produce a bullet on the screen. I have an picture saved as "bullet" in the same directory. Is there a way to make the program so that when I hit spacebar, the program will withdraw the picture from the file, then put it on the form? My teacher has no idea how to do graphics so it is up to us to find out the answers, and I have been wasting valuable time (the last 2 days) trying to find an answer
![]() I am using Delphi 3 and I need a code that will, when I press enter, make an image and put it on the screen. I don't want to have it so I have a series of images already on screen with .visiable := false, I need something that will make a "bullet" appear on screen then start moving up. Last edited by kris_krantz : 04-01-2005 at 13:01. Reason: adding information |
|
#2
|
||||
|
||||
|
Re: creating an array of images, help!!
What programming language are you using?
|
|
#3
|
|||
|
|||
|
Re: creating an array of images, help!!
I did something very similar in VB5. The best way to get multiple pictures in is a pictureclip, you can look it up on google, and it gives you far more then I can tell you.
Code:
Private Sub out_KeyDown(keycode As Integer, Shift As Integer)
If keycode = vbKeyP Then
Call Pause
End If
|
|
#4
|
|||
|
|||
|
Re: creating an array of images, help!!
I don't know if it will help but you could make one "bullet" in a picture box, image box, or your language's equivalent (if there is one), position it at the ship's location, make it visible and, while looping, move the picture 1 unit up on the screen every loop. Then, when it hits something, just make the box disappear.
Dunno if it will help. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Capture webcamera images at timed intervals? | NoodleKnight | IT / Communications | 7 | 12-09-2004 03:42 |
| Cassini-Huygens Images on JPL Webcast | petek | Math and Science | 4 | 02-07-2004 01:18 |
| Creating Videos | Raven_Writer | IT / Communications | 13 | 20-06-2004 23:48 |
| Loading Images? | Tom Bottiglieri | Website Design/Showcase | 3 | 16-02-2004 18:26 |
| polar array in 3ds | Ghetto_Child | 3D Animation and Competition | 6 | 12-01-2002 18:55 |