Type: Boolean value
Default value: false
Overview
If specified true, then the object will stop and not move
Examples
Allow the enemy object to stop
local newAI = require('classes.SimpleAI').newAI -- enemy instance local enemy = newAI({group = mainGroup, img = "snailWalk1.png", x = halfW-140, y = display.contentHeight-500, ai_type = "patrol"}) enemy.withoutLimit = true -- allow AI go ahead without limit function enemy:customActionOnAiCollisionWithObjects(event) if(event.other.type == 'enemy') then enemy.stop = true -- AI will stop and not move end end