| 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: |
| ai moving problem problem | |
|---|---|
| Tweet Topic Started: Nov 18 2007, 07:20 AM (196 Views) | |
| LuvGame | Nov 18 2007, 07:20 AM Post #1 |
|
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.. |
![]() |
|
| Ivo Georgiev | Nov 18 2007, 09:22 AM Post #2 |
|
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
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 |
![]() |
|
| Zedman3d | Nov 18 2007, 12:48 PM Post #3 |
![]()
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. |
| |
![]() |
|
| NoodleNog | Nov 18 2007, 02:15 PM Post #4 |
|
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. |
![]() |
|
| LuvGame | Nov 18 2007, 03:25 PM Post #5 |
|
Advanced Member
![]() ![]() ![]() ![]() ![]()
|
oh NoodleNog, thanks for the reply appreciate it so much, and anyway good luck for the GM YoYoGames Winter Competition
|
![]() |
|
| « Previous Topic · Questions about Ultimate 3D · Next Topic » |





![]](http://z1.ifrm.com/static/1/pip_r.png)




appreciate it so much, and anyway good luck for the GM YoYoGames Winter Competition
9:10 PM Jul 11