Type: Boolean value
Default value: false
Overview
If specified true, then the object will walk ahead without limits
Examples
Allow the enemy object to walk ahead without limits
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:SwitchDirection() -- switch enemy direction, when AI collision with another AI end end