random path finding/movement?

I was browsing the net in search for a tutorial that would show me how to give my character in my game random path finding…

I haven’t typed any code yet - Im still trying to think out the process (pseudo code)…

I’m not sure how I would implement it though. Has anyone ever done random path finding before in an app? How did you do it? Can you provide a code sample? An insight would be appreciated. I found some advanced tutorials on the subject, but they are way over my head at this point.

I want to keep things as simple as possible. Im just trying to make “object A” move towards “object B” in a random manner (path taken, speed, etc.). Imagine a circle floating on your screen in a random manner going up and down and left and right till it reaches it’s predetermined destination…

Any thoughts on this would be greatly appreciated. Thanks all for any help. :slight_smile:

Look for the “A*” (A Star) algorithm.  It’s a common pathfinding method for tower defense games to bring enemies to you, but it should be usable to move your player to some location.  There is a version for Lua in the Community Code (In the old legacy area)

Another method is the normal maze tracking where you move right until you can move right no more, then move straight type method.

Rob

I am aware of those methods, but Im looking for more randomness…I found this tutorial here (see below), but its too advanced for me at this point. Im honestly still a beginner. :slight_smile:

I was looking for a simpler method, if possible.

http://brandontreb.com/autonomous-steering-behaviors-in-corona-sdk-games

After looking at the video that shows the little green dots moving random across the screen, this is exactly the type of behavior I was looking for, but like I said, Im also looking to do this in a simpler way, if possible. Or is this what Im stuck with?

Replies appreciated.

Look for the “A*” (A Star) algorithm.  It’s a common pathfinding method for tower defense games to bring enemies to you, but it should be usable to move your player to some location.  There is a version for Lua in the Community Code (In the old legacy area)

Another method is the normal maze tracking where you move right until you can move right no more, then move straight type method.

Rob

I am aware of those methods, but Im looking for more randomness…I found this tutorial here (see below), but its too advanced for me at this point. Im honestly still a beginner. :slight_smile:

I was looking for a simpler method, if possible.

http://brandontreb.com/autonomous-steering-behaviors-in-corona-sdk-games

After looking at the video that shows the little green dots moving random across the screen, this is exactly the type of behavior I was looking for, but like I said, Im also looking to do this in a simpler way, if possible. Or is this what Im stuck with?

Replies appreciated.