At 01:30 2/24/2001, Mahmood Akhtar wrote:
>float(sprite(p_Sprite).height)/(sprite(p_Sprite).width)
>
>When I use it within a handler it gives the result 1.0000, whcih is not
>accurate, but when it is used in message window the result is 1.3261, which
>is accurate. Why?

I'm not sure why you're getting different results. It's working for me in 
both places. Try this:

(float(sprite(p_Sprite).height))/(sprite(p_Sprite).width)
or
sprite(p_Sprite).height/float(sprite(p_Sprite).width)
or maybe, possibly even:
float(sprite(p_Sprite).height)/sprite(p_Sprite).width


--
Mark A. Boyd
Keep-On-Learnin' :)


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to