realbasic-nug
[Top] [All Lists]

Re: How would you do it?

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: How would you do it?
From: Phil M <phil at mobleybros dot com>
Date: Mon, 31 Oct 2005 07:43:28 -0800
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <20051030121159 dot 67D15E57739 at lists dot realsoftware dot com> <53cf92f595bc8accab97df5f8e33f13b at adler-software dot com>
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>

<Prev in Thread] Current Thread [Next in Thread>