Forum > C# > How to make tiled texture/sprite ?

How to make tiled texture/sprite ?

By camelot Posted 2012-05-10 11:30 Comments 4
camelot
  • Posts: 37

i have small grass texture, i cant find out how to make tiled texture.
can someone point me ?

huangrh
  • Posts: 171

#1 RE: 2012-05-11 01:31

hi, haven’t you find it in the TileMapTest?

camelot
  • Posts: 37

#2 RE: 2012-05-17 17:41

nope.

let me clear. i have small grass.png
and i want to fill whole screen with that texture.

huangrh
  • Posts: 171

#3 RE: 2012-05-18 08:54

I think you could try to use Tiled Map Editor(http://www.mapeditor.org/)
You could form a map with grass.png, and then add the map to the scene. refer to TMXOrthoZorder test case.

camelot
  • Posts: 37

#4 RE: 2012-05-22 11:38

i made helper class
its make CCSprites for required area.
didnt find how to make single CCSprite filled with one texture.

Loggin to reply

Copyright © 2010 - 2013 Cocos2d-x.orgClustrmaps