|
-
Jun 18th, 2002, 06:58 AM
#1
Thread Starter
New Member
DirectX turning frame
I have think, how frames be turned by DirectX. You know, if you press left arrow key, the frame will be turned and a texture turns. For example if I have a building and the texture on it is some car and camera looking it on top, the car turns, like real car do. If you understand, please, help me!
-
Jun 18th, 2002, 09:02 AM
#2
Junior Member
If what you meant was rotating the car sprite, then the only way you can do is to pre rotate the sprite into a series of frames and run through them...
-
Jun 19th, 2002, 02:00 PM
#3
Thread Starter
New Member
Originally posted by Caleb
If what you meant was rotating the car sprite, then the only way you can do is to pre rotate the sprite into a series of frames and run through them...
Oh... Yeah. But if I pre-rotate it... How?!? How I rotate it, pre-rotate, or rotate! How I get the car to rotating? Do I make the textures, what have rotate? I suppose that by DirectX I can do it also something else, but I don't have idea, how... Hmm... I'm thinking... Someone else can be help me?
-
Jun 25th, 2002, 01:09 AM
#4
Junior Member
When I said pre-rotate
I mean rotate with your paint program. Slowly rotating them by some thing like 10 degrees each frame will do. DirectX cant do anything about rotating... at least not that I know of any... 
So.. you can say that you actually have multiple texture rather than 1.
Have you learnt how animation works? If you have'nt, I suggest you go look for some tutorials on it... There are alot in the net.
-
Jun 25th, 2002, 01:13 AM
#5
Member
I agree the easiest way to do it is to use paint to rotate the pictures the run them through with a timer, a keypress event or something. I've done it before and it works.
110359
Why is it that when you kill one man people call you a murderer and when you kill one thousand you are a conqueror?
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
|