开发者

Indicate selected tile(s) on tilemap

Anyone have any suggestions on how I can indicate selected tile(s) in开发者_运维知识库 a Tiled tilemap without resorting to creating a 'selection tile'? I merely need to brighten the tile selected.

Thanks in advance!


I have never used a tilemap before. Have you tried setting the image colour? I have not done this before myself but I am fairly certain it creates a sort of tint effect.

If that does not work you could simply use CCLayerColor (setting to the same size as the square) with limited opacity to place over the selected tile. Assuming you are using square tiles that aren't rotated, this should be quite easy.

Another option is as you said to create a selection tile. But you can create one that is used for all as it doesn't have to replace the tile. You can just put a sprite on top of your tile and limit opacity so that all it does is change it's colour or brightness (it being the tile below).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜