Add sprite to a family. Then you'll be able to do "For each Sprite, if Sprite is overlapping Family..." or use Line of Sight - "For each Sprite, if Sprite has line of sight to Family..."
and then compare instance variables on the sprite instance, and on the Family instance.
Develop games in your browser. Powerful, performant & highly capable.
getting no idea how to slide. In array i was doing by condition when
arr.curX, arr.curY = 0 & arr.curX+1, arr.curY is not = 0
then set curX, curY = curX+1,curY & curX+1,curY = 0
the same thing i'm trying with Sprites and variable but having no Idea