Type: Number
Default value: 20
Overview
Right limit up to which the object will move. (This property is needed, if
ai_type
Examples
Increase the distance that the object will patrol to the right side
local newAI = require('classes.SimpleAI').newAI -- enemy instance local enemy = newAI({group = mainGroup, img = "snailWalk1.png", x = halfW-50, y = display.contentHeight-500, ai_type = "patrol"}) enemy.limitRight = 50 -- the object will move to the right side from the start location on the 50 coordinates