Erel has given me the go-ahead to produce a new version of the Sprite library which will be the next official release. Try the attached Sprite library version 1.21.
The changes over the current Sprite library are :-
Added a Sprite.ID property that lets you name or number a Sprite and so identify a particular Sprite returned as Sprite1 or Sprite2 in a collision.
Added a GameWindow.GetSpriteID(id) method that returns a reference to a Sprite with the specified ID. This can be assigned to a Sprite Value property to manipulate the Sprite.
Added a GameWindow.CheckSpriteCollisions boolean property. True (the default) checks for Sprite collisions, set to to False to stop Collisions occurring
Modified the Sprite.IntersectsPoint hit test to work properly (I hope!).
Post here any further changes you can think of.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
|