Commit b6591fa9 authored by tenplus1's avatar tenplus1
Browse files

tweak spider climbing feature

parent 674afa91
...@@ -114,8 +114,8 @@ mobs:register_mob("mobs_monster:spider", { ...@@ -114,8 +114,8 @@ mobs:register_mob("mobs_monster:spider", {
self.spider_timer = 0 self.spider_timer = 0
-- need to be stopped to go onwards -- need to be stopped to go onwards
if get_velocity(self) > 0.2 then if get_velocity(self) > 0.5 then
self.disable_falling = false self.disable_falling = nil
return return
end end
...@@ -153,6 +153,7 @@ mobs:register_mob("mobs_monster:spider", { ...@@ -153,6 +153,7 @@ mobs:register_mob("mobs_monster:spider", {
self.disable_falling = true self.disable_falling = true
-- move up facing -- move up facing
v.x = 0 ; v.y = 0
v.y = self.jump_height v.y = self.jump_height
mobs:set_animation(self, "jump") mobs:set_animation(self, "jump")
self.object:set_velocity(v) self.object:set_velocity(v)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment