Thank you. The best solution so far has been to avoid using the sprite
name in commands like MITEM and SPRA, as Easyptr does seem to have
difficulty handling sprites by name. If the sprites are appended to a
file and a command like SPRA used to refer to them by address or
number all seems fine (thanks Thierry).

I've passed this info on to the author of Easyptr in case it helps
sort this out.

Another tip came from Albin Hessler himself (author of Easyptr). As it
happens, I had got this right, but it's worth passing on. When setting
loose item justification, you need to think of where the sprite origin
will be. If the default of centre justification is used for the loose
item and the origin is top left, the origin is drawn at the centre of
the loose item and so the sprite cannot fit unless the loose item is
proportionately larger than the sprite. As it happens, if the sprite
is assigned by name MITEM #channel%,loose_item,-2,'spritename'  you
always get either an out of range error or invisible sprite, so this
didn't help.

--
Dilwyn Jones
[EMAIL PROTECTED]
http://www.soft.net.uk/dj/index.html
-----Original Message-----
From: Fran�ois Van Emelen <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: 23 December 2001 23:15
Subject: Re: [ql-users] Easyptr 3


>Hi
>You can use the name of sprites instead of their number if you gave
them one
>in the application manager Easyspr (appman_obj).
> Once Lrespred, you can do something like this:
>100 outln
>120 mysprite=spra("xyw"): rem the name of the sprite
>140 wsprt 100,100,mysprite
>And you will see your "xyw" sprite on the screen.
>
>Does this help you?
>Francois Van Emelen
>
>Dilwyn Jones wrote:
>>
>> Thank you Thierry. I should have thought of directly addressing the
>> sprite like this. So if I just APPEND the sprites to a ptrmen_cde
file
>> for example that should work fine compiled. It may also work in
BASIC
>> I suppose. Pity about the MITEM bug, it would have been nice to
allow
>> the user to specify and load a sprite as an icon for those who have
>> the sprite editor and for me to release collections of sprites to
go
>> with this program (although I may be able to work around this by
>> appending a dummy sprite as a buffer to load a sprite into for
>> example.
>>
>> Still, thank you for the suggestion, which should
>> save me a lot of work. Looking at the manual, SPRA should also
allow
>> the name of the sprite to be specified in place of number, but I
guess
>> this might be a little bit slower if it has to search for the name.
>>
>> --
>> Dilwyn Jones
>> [EMAIL PROTECTED]
>> http://www.soft.net.uk/dj/index.html
>>
>> >There is a bug in MITEM that prevents it to load a sprite by its
name
>> >(or filename). The workaround is to place the sprite into an
appendix
>> >and to load it by its address with:
>> >
>> >MITEM #Channel,Item_number,-2,SPRA(Sprite_number)
>> >
>> >where sprite_number is the number of appearance in the appendix
file
>> >(this appendix has to be linked to the QLiberated program).
>> >
>> >QDOS/SMS forever !
>> >
>> >Thierry ([EMAIL PROTECTED]).
>> >
>
>

Reply via email to