movement
Author |
Message |
brawler
|
Posted: Wed Aug 23, 2006 10:46 pm Post subject: movement |
|
|
Well my game is space invaders really ad version of it i know but my problem is i got moving down but it lags madly when you move is there anyway I could get this fixed?
Description: |
|
![](http://compsci.ca/v3/pafiledb/images/icons/clip.gif) Download |
Filename: |
project.rar |
Filesize: |
17.72 KB |
Downloaded: |
62 Time(s) |
|
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Clayton
![](http://compsci.ca/v3/uploads/user_avatars/1718239683472e5c8d7e617.jpg)
|
Posted: Thu Aug 24, 2006 7:41 pm Post subject: (No subject) |
|
|
i cant even get it to run, i keep getting an illegal picture id number, probable cause, picture was not successfully created, so make sure you have it in there (im pretty sure your missing like 3)
im pretty sure it lags like mad because you have a delay only if you press an arrow button, why is this? also, why do you have two Input.KeyDown's in the same procedure? just run one, as it is an array of characters which means it can have up to all of the characters on the keyboard being pressed returning true
(eg. if "a" and "b" are being pressed chars ('a') and chars ('b') would return true)
|
|
|
|
|
![](images/spacer.gif) |
brawler
|
Posted: Thu Aug 24, 2006 9:31 pm Post subject: (No subject) |
|
|
here is it updated but if i take out the delay for the laser firing part it goes so fast you cat see it being shot so i need that delay but i know there is another way to make it so the firing of the laser dosnt lag. but taking out the delays for moving workeed great thanks.
Description: |
|
![](http://compsci.ca/v3/pafiledb/images/icons/clip.gif) Download |
Filename: |
project.rar |
Filesize: |
34.94 KB |
Downloaded: |
63 Time(s) |
|
|
|
|
|
![](images/spacer.gif) |
Clayton
![](http://compsci.ca/v3/uploads/user_avatars/1718239683472e5c8d7e617.jpg)
|
Posted: Fri Aug 25, 2006 9:28 am Post subject: (No subject) |
|
|
ok it now runs, but it has many issues, first, why have you created a loop for every single level? Why not have some variables to keep track what level you are on, what should be shown on the screen etc, or better yet, look into classes in the Turing Walkthrough, as they can cut the code required down hugely, although judging by the code your not ready for the concept yet, its a good thing to shoot for.
now, i noticed you have a variable naming scheme as such:
Turing: |
var pic, pic2, pic3, pic4, pic5, pic6 : int
|
have you heard of arrays? if not, check those out in the Turing Walkthrough as well, instead of what you have above you could have:
Turing: |
var foo : array 1 .. 6 of int
|
much nicer to type eh?
also another thing, i dont much fancy having to do a math question to start every level, do away with it, this game is space invaders, not lets do math with some space invaders on the side
something else i noticed was that your program flickers like mad, when your cruising through the Turing Walkthrough (you are going to right?), check out my View.Set and View.Update tutorial, even if you dont read the whole thing it should help you out a lot
with that good luck with this and welcome to CompSci
|
|
|
|
|
![](images/spacer.gif) |
pj_ladd12
|
Posted: Fri Aug 25, 2006 9:41 am Post subject: (No subject) |
|
|
wow that coding is very unessecary uneffecient and messy and hard to read.
|
|
|
|
|
![](images/spacer.gif) |
TokenHerbz
![](http://compsci.ca/v3/uploads/user_avatars/717170395558e628d9452b.jpg)
|
Posted: Fri Aug 25, 2006 9:43 pm Post subject: (No subject) |
|
|
pj_ladd12, that was an unessesary post, try not to poke fun at him, and assist him to make better use of his programming...
You post to me, is worthless, if you want to critisize, do so like super freak, where he points out the problems and has suggestions to correct them.
|
|
|
|
|
![](images/spacer.gif) |
|
|