-
Hi i have just started working on some games in Vb and DAMMMMME this is alot harder then just programs ... All i wanna do is to take a picture of a car and make it Drive ... I managed to make if go up, down , left , right but when it goes up it "Like" going on the side up i wanted it to turn the the side the car sould go [ i want to rotat it and make it go forwad] ANY HELP WILL BE GOOD THNX !!
-
make 4 images for your car: one looking forward, one looking back, one looking up, one looking down.
now make 5 imageboxes and make the first four have a picure on it. you are going to make image5 the object that moves.
make sure you set visible to false for every image but image5, so it wont be seen during runtime. now when ever you make the car go left make image5 = image1, where as image1 is the one with the car looking right. when you car move up make image5=image2 where as image2 is the one with the car faceing up.
do this for left and down and your program should work. good luck
-
I actually figured that much out on my own, and I figured out how to make my character appear as if he was moving his legs as he walked.
But now I have another problem, I can't add a background. If I do it looks crappy, because the area around the image is white. How can I make the area around it transparant?
Someone help me with that.
------------------
"I'm carrying a Geometry book, but I'm not in Geometry...it's crazy...crazy man!"
-
Send it Over to [email protected]
and i will make your backround
-
No. I mispoke. I am a very good artist, the thing I have a problem with are the images ON TOP OF the background. See, if I place a picture box, or even a regular image on top of the background, a white border exists around it which doesn't let the background show through.
I want to know how to make my picture transparant. So it appears like there is no more than a little guy running around on the background.
------------------
"I'm carrying a Geometry book, but I'm not in Geometry...it's crazy...crazy man!"
-
is this game 3D?
if so let me have a look and i will try and help
tom
[email protected]
-
you need to learn about masking. There are lots of pages dedicated to game development. Try out the one below:
http://www.perplexed.com/gpmega
Hope it helps!
Alexander McAndrew
-
You may want to try making the foreground picture into a transparent gif using the export wizard in adobe photoshop 5. This has worked for me when I put transparant images in a picture box
-
any semi-graphics intensive programmer needs to how to use bit-blt. you can check out some examples of this in one of the example projects that come with visual basic...i think its in the controls directory. its mainly about api calls. so what i recommend is to do a search on yahoo or something about bit-blt and you should find lots of stuff.
Adam
-
dmuir said to use a transparent gif. but when I tried to move one around on the form it would blink and looked really bad.