how do you write a game for examplehow do you make a picture jump by pressing the up arrow key?
Printable View
how do you write a game for examplehow do you make a picture jump by pressing the up arrow key?
I'm assuming you're using Visual Basic?
For almost acceptable speed, you must use the GDI functions(BitBlt, etc.). You can use picture boxes and move them, but it's slow as all hell... The best way would be to use OpenGL or DirectX... But of course, if you wanted the best way, it would be with C++...
Take a look at Fox's website for some tutorials on simple animation and movement.
It doesn't matter if you BitBlt in VB or in C++, BitBlt will perform just as fast... the problem lies in the code between each render... if you want that fast, try ASM instead :p
I would not recommend diving into DirectX or OpenGL, try to learn BitBlt instead...
...But once you get really comfortable with Bitblt/VB you shold try your hand at DirectDraw (DX7)
I am a newbie i don't understand what you are sayin !
Then the last thing you should be trying right now is writing a game... :rolleyes: Try something simple, like a "hello world".Quote:
Originally posted by z5x5
I am a newbie i don't understand what you are sayin !
-Hand out
not a real newbie i know how to do lots of stuff i made my own personal program for aol chat you know those kinda tools i would there used to be a program called magic toolz i think it has like faders and scrollers and stuff like that i made somthin like that for me!
Read my Tutorial then.. not finished yet but helps you alot ;)