Welcome Guest [Log In] [Register]
We hope you enjoy your visit.


You're currently viewing the Ultimate 3D Community as a guest. This means that you can only read posts, but can not create posts or topics by yourself. To be able to post you need to register. Then you can participate in the community active and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.

Join our community!

If you are already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
ai moving problem problem
Topic Started: Nov 18 2007, 07:20 AM (196 Views)
LuvGame
Advanced Member
[ *  *  * ]
how do i make the ai move using the Move() function instead of mp_potential_step that is following a path. it a bit confusing to convert the movement from the mp_pontential_step function to Move() function. hope anyone can help me with this..
Offline Profile Quote Post Goto Top
 
Ivo Georgiev
Newbie
[ * ]
First, that is not U3D question, and you should try game maker community.
Second, what do you mean under "move function"
And I think mp_pontential_step is not following a path.It is following a x and y point in the arguments.And it is very smart and helpfull function.Use this
Code:
 
mp_pontential_step(x_point_to_go,y_point_to_go,5,0)

The wall objects need to be solid, the function must be called in the step event.
If the instance you have to move to is called "enemy", replace "x_point_to_go" with enemy.x and "y_point_to_go" with enemy.y
Hope that helps
Offline Profile Quote Post Goto Top
 
Zedman3d
Member Avatar
Forum God
[ *  *  *  *  *  * ]
Move is part of U3D so to speak but yeah i didnt get what you meant by using mp_potential_step with a path. Please reiterate.
Quote:
 
Eanbro: My problem with C++ is that not everything is included to start making projects with it.
Quote:
 
Dr.B: Your problem with C++ is that you want it to be like Game Maker...
Offline Profile Quote Post Goto Top
 
NoodleNog
Advanced Member
[ *  *  * ]
Read my reply to your PM. mp_potential_step simply moves towards a point avoiding solid objects. (In my example, mp_potential_step is used to move towards the next point in a pre-calculated path.) You might want to do something else in a U3D environment, especially if you have the level as a single model.
Offline Profile Quote Post Goto Top
 
LuvGame
Advanced Member
[ *  *  * ]
NoodleNog
Nov 18 2007, 12:15 PM
Read my reply to your PM. mp_potential_step simply moves towards a point avoiding solid objects. (In my example, mp_potential_step is used to move towards the next point in a pre-calculated path.) You might want to do something else in a U3D environment, especially if you have the level as a single model.

oh NoodleNog, thanks for the reply :) appreciate it so much, and anyway good luck for the GM YoYoGames Winter Competition :lol:
Offline Profile Quote Post Goto Top
 
« Previous Topic · Questions about Ultimate 3D · Next Topic »
Add Reply