On Mon, 16 Jan 2006 16:16:35 +0100, Mark Hagers <[EMAIL PROTECTED]> wrote:

The best way would be to multiply height and width with the same factor. However in order to do that you need to make sure that the factor by which you multiply will not be truncated to an integer. Use the float() function to prevent this.
Like this:

repeat while ...
        mySprite.height = mySprite.height * float(1.1)
        mySprite.width = mySprite.width * float(1.1)
end repeat


Actually you don't need to use the syntax of float(1.1) above. Just use 1.1, any time you put a float into your operation the result will be a float value. Try it in the message window.

put 1 * 1
-- 1

put 1 * 1.0
-- 1.0000

Rob

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/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