forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Help, Need a way to automaticly bring two objets together

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development
View previous topic :: View next topic  
Author Message
coderx



Joined: 03 Jun 2008
Posts: 3

PostPosted: Tue Jun 03, 2008 12:23 am    Post subject: Help, Need a way to automaticly bring two objets together Reply with quote

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
View user's profile Send private message
coderx



Joined: 03 Jun 2008
Posts: 3

PostPosted: Tue Jun 03, 2008 12:56 am    Post subject: Reply with quote

I'm thinking that the code would look allot like a collision method?
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2907

PostPosted: Tue Jun 03, 2008 4:42 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
coderx



Joined: 03 Jun 2008
Posts: 3

PostPosted: Tue Jun 03, 2008 8:48 am    Post subject: Reply with quote

It is for the psp
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2907

PostPosted: Tue Jun 03, 2008 8:55 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group