Can someone explain this to me? How would I go about using it to create a RC-like game? I want to have Up/Down/Left/Right control a car, and the object of the game is to win (first place).
Printable View
Can someone explain this to me? How would I go about using it to create a RC-like game? I want to have Up/Down/Left/Right control a car, and the object of the game is to win (first place).
I don't know if you would want to use the StretchBlt, I think normal BitBlt would be good enough. If you check out the FAQ above there are some tutorials NoteMe wrote that are good for getting started wih BitBlt. :D
To my knowledge, BitBlt can not rotate objects. As opposed to having around 8 Sprites, could I just use the Stretch BitBlt to rotate one object itself?
Stretch BitBlt are just making it bigger or smaller, not rotating it. If I remember right you have to use GetPixel, SetPixel to rotate it. I have answered this question before with an example app. So if you seach for it you will find an example app on how to do that in real time. But remember it is much faster to do at design time, then use some pre made sprites to rotate the object. I have also posted an example app on how to rotate a car and then save all the positions so you can use it in your game later. Do a seach and you will find it.
I do not know how to use all the fancy things (This is my first year in VB, and have just barely cracked anything. All we've learned to do is basic stuff + basic games [like Pong]). Is there a Moron's version to rotating a sprite?
Not in 2D....but if you search for that function I talked about, you can just copy paste it into your project and use it...that is as easy as it gets....
Yes. Use Microsoft Paint to rotate the image, and save 4/8/16 etc. copies of the sprite :)Quote:
Originally posted by kao
Is there a Moron's version to rotating a sprite?
If he use that app I was talking about, then the app will rotate it, and save it for him, and he will save 4/8/16 minutes of time...;)Quote:
Originally posted by plenderj
Yes. Use Microsoft Paint to rotate the image, and save 4/8/16 etc. copies of the sprite :)