Originally posted by Mar7en
View Post
yep...sorry.
looked at scree shots and misunderstood them. Got excited about the problem.
Set the collision capsule on the character to a square the size of one of your grid units.
get the characters "stride" into a exact value of square. 1 step=1 square, 1 step = 1/2 square
so that always ends up exactly one square movement away.
probably use the constrain to axis to be sure you dont move at an angle
Not familiar with touch controls enough for the "swipe" effect. And by not familiar i would probably try to just do a d-pad to avoid learning something else at this moment.... XD
on input direction set the speed of character into that direction
on collision set speed zero
(disable movement node on collision. Turn back on when can move again/movement input)
Since everything fits nicely into the grid, having your collision fit nicely into the grid like that for everything would make it a lot easier i believe
Leave a comment: