PDA

View Full Version : Custom AI pawn movement for sidescrolling game



atier
03-14-2012, 02:10 AM
Hi, friends,

I need your help for pawn movement!!
My game is sidescrolling style, there will be many enemies in the sky, so there is no navmesh, I guest MoveTo or MoveToward will not work.
I want som enemies move up and down, some move right and left, some move as a spline curve, so how will you implement for such a movement system(Function)?

Here is what I \'ve tried.
My enemy pawn is inherited from Pawn and controller is from AIController, I tried Phys_None and setLocation in Pawn Tick() function, it's not work.
I tried Phys_Flying and AddVelocity in Pawn Tick() function, not work....!! I tried everything I know about pawn physics, it's not work!!!
I just want the pawn move as I want !! And need the Touch, Bump,UnTouch such collision functions work well!!!

Please help me and point the right way, folks, thanks a lot!!

atier
03-14-2012, 09:13 PM
Anybody help?

Andresh
03-15-2012, 04:36 AM
http://www.moug-portfolio.info/index.php?page=ai-pawns

This is what i used for AIPawn movement.

Bump, Touch, etc events I'm still having issues and can't help much =/