hey, sorry for the newbie questions but im having trouble.

1) how can i get a sprite displayed onto the screen?
2) if there is a surrounding color around the sprite how can i make it not visible?


thanks,
and again, im real sorry for this question, i just dont get it :P

njkt
Posted on 2004-07-21 22:43:13 by njkt809
from what i know (could be unreliable anymore :D)

1. you can store your sprites in an array or matrice and access them within your game.

2. using an Alpha color. "RGBA"
Posted on 2004-07-22 02:20:21 by wizzra
thanks :D
i guess i knew a little about the array portion, but what i meant was how exactly does that work? ive tried looking at exmples from c++ and applying them to asm but it isnt going to great :P
well what i mean to say is, how would i load the sprites into an array and then display it??
Posted on 2004-07-22 02:32:49 by njkt809
well, some games use a fixed sprites stored in ROM (just like arcade games does) and access them in an array access accourding to the game's need.
Posted on 2004-07-22 06:21:44 by wizzra
ok, but what functions would i use? are there any examples of this?


thanks for the help :D
Posted on 2004-07-22 13:43:16 by njkt809
2) if there is a surrounding color around the sprite how can i make it not visible?

if you use GDI blt's you should use masks and the AND operator.
Posted on 2004-07-22 14:12:12 by Mbee
Firs of all you have to decide if you are going to use DirectDraw or just simple software Bliting (BitBlt) and so on.

If you are going to use software than.

CreateCompatibleDc
CreateCompatibleBitmap (or similar)
SelectObject (Bitmap into DC)
BitBlt (DC into main DC(dc used by WM_PAINT or GetDC) or DC into backbuffer)
Posted on 2004-07-23 17:17:05 by AceEmbler