Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Blting Something to the GameScreen
#1
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.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)