
-----------------------------------
tanya kang
Wed Jun 04, 2008 4:22 pm

Need help with helicopter game!(game similar to jetman)
-----------------------------------
HI everybody. I am doing a turing assignment at school. And I need a lot of help. I need to know how to make the clouds move and how to change the speed of the jet. 
If any of you guys can help me or have comments, then that would be great!
P.S. Anybody know how to make the screen move like in a real game?

-----------------------------------
tanya kang
Wed Jun 04, 2008 4:58 pm

Re: Need help with helicopter game!(game similar to jetman)
-----------------------------------
o by the way.. the clouds are the thingies that the helicopter can't touch..as soon as the helicopter touches it it dies
I am also wondering how to make it so that when the cloud touches the helicopter, how do I know how to make it die.
PLEASE REPLY 
I REALLY APRRECIATE IT!

-----------------------------------
jeffgreco13
Thu Jun 05, 2008 10:07 am

Re: Need help with helicopter game!(game similar to jetman)
-----------------------------------
My suggestion to you is that in order to make a true animation seach these forums for the tutorial on View.Update. This allows for flicker-free animation when redrawing the canvas over and over and over to simulate the movement.

For the helicopter hitting the clouds part just use some simple collision detection. If you're referring to jetman you'll notice that the collision detection areas are rectangular because to actually make it detect collision with a random size polygon is very very difficult and to get it working by the end of ur school year is very unlikely. So you're likely to have the clouds randomly placed obviously right? So you're going to have to detect whether the helicopter crosses the cloud's path.

Therefore, the cloud is cX and cX+cL AND cY and cY+cH
the helicopter is hX and hX+hL AND hY and hY+hH:

So create if statements that will detect collision:
if hX+hL>=cX AND hX+hL=cY AND hY+hH