
-----------------------------------
adigamov
Mon Dec 24, 2007 11:51 pm

Jetman Help 2 (gone far but stuck on problem now) plz help
-----------------------------------
Hi there
i have gone very far with my jetman game thanks to the support of compsci community.
i am stuck now on how to find a simple to way to make it that ALOT of clouds will appear, not just 1.
also i would like to know how to make it that the longer you r going up or down, the faster you will be going.
like constant gain.
well anyway thanks in advance and here is my program.
all of it is originally made by me.
also dont play any music. the music sucks i just put it there so that i know it works and when im done the game ill add good songs.
[/img][/list][/quote]

-----------------------------------
syntax_error
Tue Dec 25, 2007 2:12 pm

Re: Jetman Help 2 (gone far but stuck on problem now) plz help
-----------------------------------
this maybe a bad idea but....
make a proc that draws your clouds and put that inside a loop
and then fork the proc so that it keeps running with everything else
try it out ?

-----------------------------------
McKenzie
Wed Dec 26, 2007 9:35 am

Re: Jetman Help 2 (gone far but stuck on problem now) plz help
-----------------------------------
You have a number of problems with your program, but as far as having more than one cloud you will need to use arrays to keep track of the locations of all the clouds on the screen. So, lowestX, lowestY2 need to become arrays. Please, for your own sanity give them better names (e.g. cloudX, cloudY.) This means, of course, that you will need a loop to draw all of your clouds, and a loop to check for collision.

-----------------------------------
adigamov
Fri Jan 04, 2008 1:13 am

Re: Jetman Help 2 (gone far but stuck on problem now) plz help
-----------------------------------
ok ima try that thanks
but can u also tell me some of the problems you noticed
it would be greatly appreciated
thanks

-----------------------------------
HucSao
Mon Jan 07, 2008 5:30 pm

RE:Jetman Help 2 (gone far but stuck on problem now) plz help
-----------------------------------
Fix the flashing with View.Update. Don't try processes thought. They're generally not a good idea, unless you are using it for music.

-----------------------------------
TokenHerbz
Mon Jan 07, 2008 6:19 pm

Re: Jetman Help 2 (gone far but stuck on problem now) plz help
-----------------------------------
fork the proc 

i am not a fan of forking

-----------------------------------
CodeMonkey2000
Mon Jan 07, 2008 6:25 pm

Re: Jetman Help 2 (gone far but stuck on problem now) plz help
-----------------------------------

i am stuck now on how to find a simple to way to make it that ALOT of clouds will appear

The easiest way to do this is to allow only 5 to 7 clouds on the screen at once. To do this you will put all of the attributes of each cloud in an array. Once a cloud has reached the end of the screen it should reset to the beginning. This will create the illusion that there are infinite clouds.
