use api functions for spider

This commit is contained in:
tenplus1 2023-10-13 08:40:10 +01:00
parent 5adb1caf70
commit a1030bf7d5
1 changed files with 3 additions and 1 deletions

View File

@ -203,7 +203,9 @@ mobs:register_mob("mobs_monster:spider", {
-- move up facing
v.x = 0 ; v.y = 0
v.y = self.jump_height
mobs:set_animation(self, "jump")
self:set_animation("jump")
self.object:set_velocity(v)
end,