The TilemapKit Roadmap is yours! All the ideas and discussions
3 votes Vote

TK: get object(s) whose shape contains point

TKMap(Node) should have these methods:

-(TKObject*) objectAt:(CGPoint)locationInMap;
-(NSArray*) objectsAt:(CGPoint)locationInMap;

Returning the object(s) whose shape (rectangle, polygon, ellipse) contains the point (in the map's coordinate space). This allows for touch/click detection of objects as well as triggering game events when the location is a position of a character on the map (ie player walks over polygon object which emits a sound effect).

sitterheim, 26.09.2015, 11:15
Idea status: under consideration


Leave a comment