it seems to me that when you change the sprite.top property, you're not
moving the sprite as much as stretching it. put the sprite.stretch
before and after and check it out.
if it is being stretched, i've noticed that sometimes when you change
one length, the perpendicular length can change too, even if you don't
touch it. i think it has something to do with only certain ratios of
widths to heights being allowed?
try using different numbers than 5. it might work if you only move it 4 pixels?
--bhakti, guessing wildly on not enough coffee yet today.
Leon McComish wrote:
>
> I have a really dumb mental block problem. I have a vector power bar which
> reacts to a keypress with the following code in the exitframe handler (only
> temporary - just for testing):
>
> if the keypressed = "a" then
>
> sprite(1).top = sprite(1).top - 5
>
> end if
>
> I'm sure I've used this before to increase the height of the sprite whilst
> keeping it in place but for some reason it keeps drifting off to the right
> too. I've tried it horizontally (sprite(1).right = sprite(1).right + 5) but
> that floats upwards. What the hell is wrong with my brain? It's obviously
> Friday and still affected by last night's alcohol, but at this rate I'll be
> forgetting how to use locH and locV }-}
>
> Leon McComish
> Web Developer
> email: [EMAIL PROTECTED]
>
> Get the best free games on the web at
>
> www.freeloader.com
>
> freeloader.com is a division of
> Pure Entertainment Games PLC
> 131-151 Great Titchfield Street
> London W1P 8AE
> tel: +44 (0)207 663 3900
> fax: +44 (0)207 663 3901
>
> [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!]
--
R. Bhakti Klein
Lingo Programmer, Scientific Learning
http://www.ScientificLearning.com
http://www.BrainConnection.com
**
Baritone, Wicki6
http://www.wicki6.com
***
"On Earth, you can only do little things;
but you can do them with a lot of Love."
-- Mother Theresa
[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!]