|
-
May 6th, 2004, 07:34 PM
#1
Thread Starter
New Member
StretchBlt - Rotate?
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).
-
May 6th, 2004, 07:41 PM
#2
Ex-Super Mod'rater
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.
When your thread has been resolved please edit the original post in the thread (  )
and amend "-[RESOLVED]-" to the end of the title and change the icon to  , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

-
May 6th, 2004, 09:43 PM
#3
Thread Starter
New Member
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?
-
May 7th, 2004, 03:05 AM
#4
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.
-
May 7th, 2004, 05:42 PM
#5
Thread Starter
New Member
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?
-
May 7th, 2004, 06:55 PM
#6
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....
-
May 10th, 2004, 08:12 AM
#7
Retired VBF Adm1nistrator
Originally posted by kao
Is there a Moron's version to rotating a sprite?
Yes. Use Microsoft Paint to rotate the image, and save 4/8/16 etc. copies of the sprite
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
May 10th, 2004, 08:56 AM
#8
Originally posted by plenderj
Yes. Use Microsoft Paint to rotate the image, and save 4/8/16 etc. copies of the 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...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|