Hello
Guest
Home
Help
Search
Login
Register
2D Toolkit Forum
»
2D Toolkit
»
Support
»
Repeat sprite
« previous
next »
Print
Pages: [
1
]
Author
Topic: Repeat sprite (Read 5856 times)
mike2d
2D Toolkit
Jr. Member
Posts: 63
Repeat sprite
«
on:
June 27, 2012, 09:09:13 am »
hi there,
what's the best way to achieve the following :
i'd like to make a pipes set. i've started to draw a small portion of it. my idea is to repeat this portion to create long pipes.
any idea ?
Logged
unikronsoftware
Administrator
Hero Member
Posts: 9709
Re: Repeat sprite
«
Reply #1 on:
June 27, 2012, 01:41:43 pm »
There isn't a built in tiling sprite, but you can simply spawn multiple sprites at the correct spacing. You can get the spacing by looking at the bounds - tk2dSprite.GetUntrimmedBounds returns this information.
Logged
mike2d
2D Toolkit
Jr. Member
Posts: 63
Re: Repeat sprite
«
Reply #2 on:
June 27, 2012, 02:29:40 pm »
actually, in the meantime, i discovered your Tile Map tool and that's just what i was looking for
Logged
Print
Pages: [
1
]
« previous
next »
2D Toolkit Forum
»
2D Toolkit
»
Support
»
Repeat sprite