AGK for Pascal
ContentsIndexHome
PreviousUpNext
TAgkSprite.SetImageAndUpdateShape Method

Change the sprite image to a new image, and update the collision shape accordingly.

Syntax
Pascal
procedure SetImageAndUpdateShape(const NewImage: TAgkImage);

Updating the collision shape is an expensive process. To change the image without updating the collision shape, use the Image property.

Copyright (c) 2012. All rights reserved.