On Oct 31, 2005, at 5:06 AM, Carl Adler wrote:
was Re: Sprite and randomdirection Now that I think of it is there
anyway to move the sprite in random directions independent of
speed? That is other than using, for example, x=x+1, y=y+10, which
would be 84 degrees.
If you have seen this before I apologize. I posted it a couple days
ago but I do not think that it ever showed up.
Now that I think of it, is there anyway to move the sprite in
random directions independent of speed? That is, other than using,
for example, x=x+1, y=y+10, which would be 84 degrees, but also
specify a speed.
First of all, your subject is way too long.
Speed in this case would take advantage of the radius of a circle and
all available pixels within the circumference of the circle. So you
basically determine the speed (radius) and the angle and then
discover what x,y values to apply using trigonometry.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|