controlling moving images/sprites

Started by
2 comments, last by steve1992 21 years, 6 months ago
Ive created my surface with CreateImageFromFile, I dont want to go the tiling route. Ive loaded my texture/sprite onto the surface with FVF and CreateTextureFromFileEX. How do I move the thing around the screen with DirectInput? I know how DirectInput works. Do I need to increment the vertices cooridantes with each keypress? Can I use RECT, but then I have the problem with un/locking RECT Already checked out the resourses, no joy. I havent got a clue
Advertisement
why dont you load it on a smaller quad, then move the quad instead?

.lick
How. Im using the CreateSurface fn to create a background
and a textured quad(sprite) to move around the background

any links you could give me?
Can you use RECTs to hold textures from GetTextureFromFileEX,
preseted onto a surface(background).
therefore, changing RECT coordinates moves texture/quad around surface?
Do I need to use AddDirtyRect?

This topic is closed to new replies.

Advertisement