Advertisement

controlling moving images/sprites

Started by October 13, 2002 02:48 AM
2 comments, last by steve1992 22 years, 1 month 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
why dont you load it on a smaller quad, then move the quad instead?

.lick
Advertisement
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