Results 1 to 4 of 4

Thread: TImageSprite and rotation

  1. #1

    TImageSprite and rotation

    i was wondering is there a way to rotate an image befora loading it in the TImageSprite.image ?

  2. #2

    TImageSprite and rotation

    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?

  3. #3
    Legendary Member cairnswm's Avatar
    Join Date
    Nov 2002
    Location
    Randburg, South Africa
    Posts
    1,537

    TImageSprite and rotation

    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)

  4. #4

    TImageSprite and rotation

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •