i was wondering is there a way to rotate an image befora loading it in the TImageSprite.image ?
i was wondering is there a way to rotate an image befora loading it in the TImageSprite.image ?
rotate a TBitmap like this
http://delphi.about.com/cs/adptips20...ltip1201_4.htm
Where's this TImageSprite you speak of? What does it do?
Also look at TImageSpriteEx
William Cairns
My Games: http://www.cairnsgames.co.za (Currently very inactive)
MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)
i think TImageSpriteEx's collision detect can't support pixelCheck.
function TImageSpriteEx.TestCollision(Sprite: TSprite): Boolean;
begin
if Sprite is TImageSpriteEx then
begin
Result := OverlapRect(Bounds(Trunc(Sprite.WorldX), Trunc(Sprite.WorldY), Sprite.Width, Sprite.Height),
Bounds(Trunc(WorldX), Trunc(WorldY), Width, Height));
end else
begin
Result := OverlapRect(Sprite.BoundsRect, Bounds(Trunc(WorldX), Trunc(WorldY), Width, Height));
end;
end;
Bookmarks