mobs
mobs copied to clipboard
Updated code. Should be the right way of fixing it now.
Updated the code more, so now the fix should be the right way. Added lines of code to make sure attack.dist gets set to nil and changed the jump variable to use a function rather than a boolean, allowing modders that use the api to customize the jump.
1st commit: See my forum post. 2nd commit: the jump function should be added to the mob table, so you can simply call self:jump() (like set_velocity()). 3rd commit: Good idea.
How's the commits I made? Is it fixing it the right way now? And how about the jump function. Is it fine that way?