Quantcast
Channel: Adobe Community : All Content - All Communities
Viewing all articles
Browse latest Browse all 290743

Move sprite in straight line

$
0
0

Hello:

I'm trying to move a sprite from one point to another in straight line direction, but I can't get it.

For example:

 

X1=0

X2=500

Y1=0

Y2=300

I need to move smoothly diagonally (straight line) I'm trying to use equation of the line formula but I can't do it.

Can you help me, please?

Many thanks


Viewing all articles
Browse latest Browse all 290743

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>