Hello Toe,
You have to declare the object in RAM:
For example:
D4D_DECLARE_STD_PICTURE_INRAM(mov_picture, BRD_POSX, BRD_POSY, &bmp_blue)
In any point of your program you can change coordinates and move the picture:
POSX=POSX+10; POSY=POSY+10; pPoint->x=POSX; pPoint->y=POSY; MovePicture((D4D_OBJECT*)&mov_picture, pPoint);
This is the MovePicture function, you have to 'erase' the previous position on the screen, as eGUI doesn't save any screen content.
void MovePicture(D4D_OBJECT* pPictObject, D4D_POINT* pPoint){ D4D_PICTURE* pPict = D4D_GET_PICTURE(pPictObject); D4D_SIZE size = { 64, 64 }; D4D_FillRect(&(pPict->scrPos), & size, D4D_COLOR_RGB(192, 192, 192)); pPict->scrPos = *pPoint; D4D_InvalidateObject(pPictObject, D4D_TRUE);} You will have to work with a solid color in the background.
Best Regards,
Luis