Hi all...I got the code to work up to the point where my enemy image is changed to an explosion image. Problem is that the explosion image now stays on the screen and it should be dead and the bullet lives on when it's supposed to be dead. When I call dead the image change is ignored.

What am I doing wrong here? Your help is appreciated :-)

BTW: My game works on 85 fps and has a resolution of 1024*768, I read someones post that DelphiX can't handle that resolution. I'm using Delphi 6 and DelphiX

[pascal]
procedure TBullet.Hit;
begin
Collisioned := False;
Image := Form1.DXImageList1.Items.Find('Explode');
Width := Image.Width;
Height := Image.Height;
AnimCount := Image.PatternCount;
AnimLooped := True;
AnimSpeed := 15/1000;
AnimPos := 0;
Form1.DXWaveList1.Items.Find('hit').Play(False);
end;

procedure TBullet.DoCollision(Sprite: TSprite; var Done: Boolean);
begin
If (Sprite is TEnimy) then
begin
TBullet(Sprite).Hit;
Enimies := Enimies -1;
Points := Points + 1000;
Done := False;
end;
end;[/pascal]