| View previous topic :: View next topic |
| Author |
Message |
coderx
Joined: 03 Jun 2008 Posts: 3
|
Posted: Tue Jun 03, 2008 12:23 am Post subject: Help, Need a way to automaticly bring two objets together |
|
|
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. |
|
| Back to top |
|
 |
coderx
Joined: 03 Jun 2008 Posts: 3
|
Posted: Tue Jun 03, 2008 12:56 am Post subject: |
|
|
| I'm thinking that the code would look allot like a collision method? |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2907
|
Posted: Tue Jun 03, 2008 4:42 am Post subject: |
|
|
| 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. :) |
|
| Back to top |
|
 |
coderx
Joined: 03 Jun 2008 Posts: 3
|
Posted: Tue Jun 03, 2008 8:48 am Post subject: |
|
|
| It is for the psp |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2907
|
Posted: Tue Jun 03, 2008 8:55 am Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
|