by skydereign » Tue Mar 03, 2009 5:16 am
I think this is what you wanted. Upon the keydown you set the xvelocity. Until you change the xvelocity, the actor will continuously move right. Then, since you want the helicopter to rise, do the y+=3. This will make you go up only when pressing up. Then a draw actor script, you put y+=2, to set gravity. For this game you would not use the yvelocity+=, as it is not the proper gravity system. This will make your helicopter fall at all times, rising only when you press up.
As for the game, it is a good start. I don't really know where you are going with it though. At this point you could take it many ways, calculating score by distance, by enemies (if you add them), or some other paths. You might tweak the values, I just set them to relatively fitting values.
- Attachments
-
- data.zip
- (226.58 KiB) Downloaded 103 times