Posted By
|
Message
|
Mr.Earthbound
Registered 15/10/2014 22:31:48
Points 7
|
15th October, 2014 at 15/10/2014 22:35:01 -
Hey guys! I've made a very simple game. But I'm having problems creating a very simple AI. I have a "roach enemy" that I want to move on his own. I don't want to use a path movement. Now I've set up some simple conditions in the event editor. But the only result I get is that he will change directions like I programed him to. But he will not move. Which is frustrating because I need him to move. Here's an image of my event list editor. To me everything looks fine, and he SHOULD move. but he doesn't; he only changes directions which, I guess makes me somewhat happy. Does anyone have any ideas what I'm doing wrong?
Link > http://i.imgur.com/JJ5wDMq.png
Also, here is a link to an image of that object's movement properties.
Link > http://imgur.com/ZHitJI2
n/a
|
Pan-tosser
Registered 24/10/2008
Points 520
|
16th October, 2014 at 16/10/2014 01:15:42 -
Right now you have him set up to be moved by the player. I like to use the static movement, which is stopped and then program some code to make him move
https://www.facebook.com/nathon.brown.7
|
Mr.Earthbound
Registered 15/10/2014 22:31:48
Points 7
|
16th October, 2014 at 16/10/2014 01:27:48 -
But the first line is at the start of frame ignore player 2's controls. idk, maybe thats not the more efficient method. Well, if you had set the movement to static, what would be the other conditions you would write to create a type of AI movement? I'm open to all suggestions. I just want this little dude to move.
n/a
|
LordHannu Crazy?
Registered 22/04/2007
Points 7910
|
16th October, 2014 at 16/10/2014 01:31:45 -
For this I would use ball movement and all actions would work.
Then you can take away ignore control too.
Edited by LordHannu
n/a
|
Mr.Earthbound
Registered 15/10/2014 22:31:48
Points 7
|
16th October, 2014 at 16/10/2014 02:00:52 -
LORD HANNU!!!! That COMPLETELY solved my problem. THANK YOU SOO MUCH! And thanks to everyone else who took the time out to read this thread. It was driving me clinically insane.
n/a
|
Mr.Earthbound
Registered 15/10/2014 22:31:48
Points 7
|
16th October, 2014 at 16/10/2014 16:26:58 -
Well it did work with the ball movement, but not with the 8 directional. I figured out why! It was a problem with the build I was using. I was using MMF2 build R239. And the latest build is R257.12. So once I updated to that build now the roach moves with the original setup I had using the 8 directional movement and player 2 controls. Weird, but as long as it works I'm happy. This stupid AI problem had me pulling my hair out for days.
n/a
|
|
|