mirror of
https://codeberg.org/tenplus1/mobs_monster.git
synced 2024-12-23 01:10:26 +01:00
use api functions for spider
This commit is contained in:
parent
5adb1caf70
commit
a1030bf7d5
@ -203,7 +203,9 @@ mobs:register_mob("mobs_monster:spider", {
|
|||||||
-- move up facing
|
-- move up facing
|
||||||
v.x = 0 ; v.y = 0
|
v.x = 0 ; v.y = 0
|
||||||
v.y = self.jump_height
|
v.y = self.jump_height
|
||||||
mobs:set_animation(self, "jump")
|
|
||||||
|
self:set_animation("jump")
|
||||||
|
|
||||||
self.object:set_velocity(v)
|
self.object:set_velocity(v)
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user