Game Development Community

Astar problem about createpath

by Jack Hsu · in Torque Game Builder · 11/16/2009 (9:05 am) · 2 replies

Hi, I'm just creating a game with only 4 directions animation. So that I don't want my sprite walk diagonally. I noticed that there's an option as "cut corners" in createpath function. I set it to false but it doesn't work. The sprite still walks diagonally. Is there a way to work it out?

#1
11/16/2009 (3:25 pm)
I think you want "setDiagonalMovement(false)".
#2
11/16/2009 (9:35 pm)
thanks a lot ,that's it:)