There seems to be a download problem, the file has some ID on the front and registers as corrupt.
4171d1246351689-sprite-attributes-properties-sprite1.23.zip
I don't see that, it downloads fine for me, both by left clicking the link and right clicking then selecting "Save Target As".
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
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.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Attached is a provisional help file for version 1.3. There is a description of the additions and changes in the Overview topic.
I will wait a few days to see if anyone comes up with any isuues or requests for changes then I will pass the library and help sources over to Erel for issue as an official library. The official release will include the source code so that the library may be merged when optimised compiled.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Thank you so much agraham, anything extra with sprites is a Godsend. The movement change is especially good news, even though I was unaware of the cause of the difficulty.
I don't know what happened with the download, 1.24 and help both work fine.
Well done.
[Edit] Weeellll, there is one question. Would it be possible to attach data to a sprite? For example an array or list or perhaps a pointer, but not so good.
__________________
You never stop learning until you die.
Sometimes I think I am dead.
Sometimes others think I am dead!
Homesite: http://www.don-simmonds.co.uk for Libyan Mural
Device:Viewsonic VPad7, Android 2.2.2
Version 1.25 adds two properties to a Sprite, Data and DataArray. These may be used to hold data individual to each Sprite.
Sprite.Data : String [I/O] : Gets or sets a single data item.
Sprite.DataArray : String() [I/O] : Gets or sets a single dimensioned array of data items.
A small demo is in the archive.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
When I read that I thought I had missed it in some very old version, then I read it again...
WoW this is marvellous, thank you.
Have you ever been in the situation where a fruit machine pays out and gets stuck... then every coin you put in causes another payout?
I notice with 1.25 that there are 4 digits left!!
Much obliged, I'm thinking hard...
I haven't tried this new bit yet and can't think quick enough to remember 'data items' types, so I will ask. Does the data item in the array permit an x,y coord as one entry?
__________________
You never stop learning until you die.
Sometimes I think I am dead.
Sometimes others think I am dead!
Homesite: http://www.don-simmonds.co.uk for Libyan Mural
Device:Viewsonic VPad7, Android 2.2.2
__________________
You never stop learning until you die.
Sometimes I think I am dead.
Sometimes others think I am dead!
Homesite: http://www.don-simmonds.co.uk for Libyan Mural
Device:Viewsonic VPad7, Android 2.2.2