Hey rachid since you have an angle if you have speed then calculating points
is not a problem at all.


lets have a speed of k  that the sprite moves at

so the new position is

x=x+k*cos(angle)
y=y+k*sin(angle)

you would be substituting the loch of sprite for x and the locv of sprite
for y


Hope that helps

Vijay
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Rachid Mehmed
Sent: Saturday, January 19, 2002 12:43 PM
To: postLingo
Subject: <lingo-l> (no subject)


Hi to everyone,

Does anyone know how to move a sprite in a diagonal under given angle?

Thanks
[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!]

[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