![]() |
Blting Something to the GameScreen - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17) +---- Thread: Blting Something to the GameScreen (/showthread.php?tid=1586) |
Blting Something to the GameScreen - Becoming - 29-02-2008 im trying to blt a graphic to a certain part of the gamescreen any idea how ? im not wanting it to follow the player, i just want it to be fixed at the location that the player was in. This is the code that is not working. rec.Top = 0 rec.Bottom = 64 rec.Left = 0 rec.Right = 32 Call AddText("Sub TestSub has been Fired", Green) x = PlantX '(GetPlayerX(Index) * PIC_X + sx + Player(Index).XOffset) - (NewPlayerX * PIC_X) - NewXOffset - 32 y = PlantY '(GetPlayerY(Index) * PIC_Y + sx + Player(Index).YOffset) - (NewPlayerY * PIC_Y) - NewYOffset - 35 Call DD_BackBuffer.BltFast(x - (NewPlayerX * PIC_X) + sx - NewXOffset, y - (NewPlayerY * PIC_Y) + sx - NewYOffset, DD_CorpseAnim, rec, DDBLTFAST_WAIT Or DDBLTFAST_SRCCOLORKEY) i commented out the other stuff because they are not moving. any ideas ? thanks. Re: Blting Something to the GameScreen - William - 12-03-2008 If you check this code, you can easily edited it. Just rename it and run it like this: Code: call blttile1(2,2) Code: Public Sub BltTile(ByVal x As Long, ByVal y As Long) |