Can anyone help me with an Easyptr query? I am trying to assign a
sprite to be a loose item object within a BASIC program, with the
MITEM command. It works fine if you put the sprite in the loose item
from Easymenu, but the sprite needs to be changed from BASIC.

Design a simple menu, call it test_men for example. Create just one
loose item big enough to hold the sprite, which is called hand_spr.
This will be loose item -1

Here's the simple program to set it up:

100 MDRAW #0,'flp1_test_men'
110 MITEM #0,-1,-2,'flp1_hand_spr','H'
120 num = MCALL(#0)
130 MCLEAR #0

Line 110 sets the object for loose item number -1 to be a sprite (item
type -2 for the sprite as per page 2/123 of the manual), and 'H' is
the selection key.

The menu appears but the loose item is blank. Very occasionally you'll
get a 'bad parameter' error or the sprite appears outside the loose
item and the program crashes. If you substitute a text item with 110
MITEM #0,-1,0,'Hi','H' the program works as expected.

This is driving me mad trying to resolve this and the facility is
needed for a program I'm writing. Help!

(Have tried to contact the author, no response yet though!)

--
Dilwyn Jones
[EMAIL PROTECTED]
http://www.soft.net.uk/dj/index.html

Reply via email to