It looks like the game is using acceleration. It goes faster up after you have hold down the mouse. So you may want to use an acceleration variable (double) too. So when you push down the mouse, the acceleration goes from something like 0.05 too 2 or something like that. The first time the loop goes, it will move the helicopter 0.05 pixels up (it actually want move it that slow), and the next time the loop is running the acceleration is bigger, something 0.05 + 0.05 and then the helicopter will move 0.1 pixels up...and so on.
It's much more fun to make a game in VB then in Flash (That’s at least what I think).
Cyborg: That was a kind of cool. Now it is just lacking collision detection, and it should be a little bit bigger. Because sometimes you can't do anything to avoid a collision because you have too little time. And the third thing is the "floor" and "roof" of the game. Nice one.
Originally posted by duc how do you make games in flash? you cant to object collision and borders can you?
What are you talking about? Of course you can. The objects have x and y values too, and furthermore, I think you have much more control over the game, and it will certainly be much smoother.
Also, many more games are made in flash than there are in VB
Small games are maybe easy to make in Flash, but I don't think more complex are (I don't know, because I have never made a game in flash). When you want 3D, Maps, and databases in your game, I would go for VB and not Flash, or actually C/C++ would be better....
Nice nice...I had a little "bug" in the old version, but I couldn't figure it out. It seemed like some times when I clicked the mouse, the helicopter wouldn't go up. But when I tried Version 2, I discovered that I double clicked the mouse. And then the game didn't set the 'GoingUp = True'. So you should add this lines too your code, and it would be easier to play....
Private Sub PicDisp_DblClick()
GoingUp = True
End Sub
I agree about not using flash to make complex games, but I would still have to say I think it is better than VB. Flash has database access, and 3d graphics are very easy to use with flash.
Nevertheless, I do agree that both flash and vb are not ideal for 'good games'. At that is probably why C++ is used for most games...
I thougt about drawing lines from the roof start to the bottom in the green color or wahat ever. Make an array, with the length of the screen. So it can hold the start of the roof. So the array would look something like this 30, 30, 30, 29, 28, 27, 26, 26, 26, 26... making the roof look like a line that first goes horisontalt and then little bit up, before it goes forward. And every time the screen moves 1 pixel forward, you have to add a new hight of the roof on the end of the array (but first you have to move all the numers one index to the front, so the first numer are not a part of the array, but the it is room, for one more. And then you can paint the roof by doing a loop of the array and fraw lines from the arrays number and to x = 0.
Here some some methods I thought of off the top of my head:
1) Your way - always decreasing roof/floor
2) Make screen move faster
3) Make objects taller/longer (longer can also affect it...)
4) Different objects... not just constant retangles, that I think are easy to avoid.
I think you have a good game going, but if you ask me... the way you are heading, you are basically asking for help, and wondering how to COPY that helicopter game. Don't. Change things.
Do you never sleep, or go too school Cyborg. I know that small kids like you are supposed to go too school in Sweden. But I love the game. Can't say anything else. Just got too love it.