Help, Need a way to automaticly bring two objets together

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
coderx
Posts: 3
Joined: Tue Jun 03, 2008 12:09 am

Help, Need a way to automaticly bring two objets together

Post by coderx »

I need a way of bringing two objects together on a map,

For example lets say i have two cits on a map and I want player2's cit to walk towards player1's other citizen.

Any Ideas for automaticly causing objects to move towards each other.
It's a crude AI.
coderx
Posts: 3
Joined: Tue Jun 03, 2008 12:09 am

Post by coderx »

I'm thinking that the code would look allot like a collision method?
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

You'd be better off asking that on a general purpose Lua forum rather than here. We concentrate on programming as it relates to the PSP (or PS2 or PS3 depending on the forum you're in). We don't tend to help with questions on programming in general. Besides, if you go to a general purpose Lua forum, you'll probably already find examples of doing what you asked about. :)
coderx
Posts: 3
Joined: Tue Jun 03, 2008 12:09 am

Post by coderx »

It is for the psp
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

coderx wrote:It is for the psp
It doesn't matter that you only intend to run it on the PSP. You asked a general purpose question that could be for any language on any platform. It certainly wasn't PSP specific. You'll find the answer to your question in any book on programming games in any language on any platform.
Post Reply