oualid6496
Well-Known Member
Is it possible block people from throwing things down? Because it's possible to cheat at the momentCopy the library again from the main post and see if it fixes your error.
Also is it possible to make a highscore list?
Is it possible block people from throwing things down? Because it's possible to cheat at the momentCopy the library again from the main post and see if it fixes your error.
you can edit player onmoveitem and check for the topos areaIs it possible block people from throwing things down? Because it's possible to cheat at the moment(if someone throws another cake down)
Also is it possible to make a highscore list?
function isInArea(center, rangeX, rangeY, pos)
return (pos.x >= center.x-rangeX and pos.x <= center.x+rangeX and pos.y >= center.y-rangeY and pos.y <= center.y+rangeY)
end
if isinarea(snakecenter, 5, 5, toposition) then
self:sendtextmessage('sorry not possible')
return false
end
its also possible to make a highscore list. just save the score to a storage then sort themIs it possible block people from throwing things down? Because it's possible to cheat at the moment(if someone throws another cake down)
Also is it possible to make a highscore list?
you can edit player onmoveitem and check for the topos area
example:Code:function isInArea(center, rangeX, rangeY, pos) return (pos.x >= center.x-rangeX and pos.x <= center.x+rangeX and pos.y >= center.y-rangeY and pos.y <= center.y+rangeY) end
checks in a 5x5 square for toposition, using snakecenter as the center positionCode:if isinarea(snakecenter, 5, 5, toposition) then self:sendtextmessage('sorry not possible') return false end
its also possible to make a highscore list. just save the score to a storage then sort them
add the function to your lib and check position in onmoveitemHow do I do that?