When creating a class in delphiX for a character and, for instance, I wanted to draw the sprite rotated at an angle using the sprite engine, my code looked as follows:
It works... but the sprite gets drawn twice!! Once rotated and once normal. I probably set up the DoDraw incorrectlyCode:THero = class(TImageSprite) Speed : Integer; Public Procedure DoMove(MoveCount: Integer); override; procedure DoCollision(Sprite: TSprite; var Done: Boolean); override; Procedure DoDraw; override; end;![]()
Any ideas?


Reply With Quote


