help control walking speed
So I have a enemy who I want to walk at a maximum speed of 50, I was going to use apply max speed, but the problem there is then if he falls of a ledge he doesn't fall nearly fast enough.
I tried doing this: constrain> self motion> linear x to: max(50,min(-50))
but it isn't working.
can anyone help with this? or have a better solution?
Thanks
I tried doing this: constrain> self motion> linear x to: max(50,min(-50))
but it isn't working.
can anyone help with this? or have a better solution?
Thanks
Comments
if self.motion.linear.y = 0
change attribute max speed to 50
otherwise
change attribute max speed to ___(whatever you want your max falling speed to be)____
I ended up doing this:
If Self.linear y is equal or greater then -35 change max speed to 50
other wise max speed =200
Thanks so much