View Single Post
  #23 (permalink)  
Old 07-01-2009, 09:29 AM
agraham's Avatar
agraham agraham is offline
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

This has grown into a much more extensive exercise that I anticipated!

Version 1.24 has the following changes.

CollisionMouse events now occur in the order you might expect. That is Sprites added later, and so drawn on top of other Sprites, raise the event first. Sprites may now be modified in the CollisionMouse event without the possibility of raising an exception. This is also true for the other events.

Previously the Tick routine drew the Sprites then moved them ready for the next Tick. This left the position of the Sprites as reported by their X and Y properties different to their screen position. This made clicking a fast moving Sprite difficult as the user saw the current screen position but the collision test saw the next screen position. Now Tick moves all the Sprites then draws them leaving their reported X and Y positions equivalent to their screen positions.
Attached Files
File Type: zip Sprite1.24.zip (7.4 KB, 24 views)
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote