namaste ravi.
to increase the speed of movement, increment the locV by more than 1
pixel at a time. as you get closer to your target, increase the amount
you move it by each time. that will give the desired effect.
it will require rewriting the loop, as you cannot use Y for the new
locV.
Instead, keep a variable of the number of pixels to change it, 1, then
2, then 3, and set
sprite(pspriteNum).locV = sprite(pspriteNum).locV - pIncrement
and increase pIncrement every so often, until you get the desired
effect.
--bhakti
p.s. hi everyone!!! yes i'm back!!!! watch out@!!!!!!
R Kumar wrote:
>
> Hi List,
>
> Thanks to Daniel Plaenitz and Chris Watson for
> answering my earlier question about random questions
> on a frame.
>
> I am moving a sprite from point A to Point B. I need
> to speed up the time in which it reaches from point A
> to Point B. I am able to reduce the time but not able
> to increase the speed. Any help would be appreciated.
>
> ravi
>
> on mouseUp me
> repeat with y=883 down to 583
> sprite(pspriteNum).locV = Y
> put the ticks - 1 into delayTime
> repeat while the ticks < delayTime
> nothing
> end repeat
> updateStage
> end repeat
> end
>
> =====
> Ravi Garimella
> Multimedia Developer
> Performtech
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail - only $35
> a year! http://personal.mail.yahoo.com/
>
> [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!]
[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!]