Tiling a Sprite

For questions about using Classic.

Post » Fri Nov 19, 2010 3:01 am

Is there anyway to get an effect similar to how a tiled object repeats it's texture in a sprite? Like say I wanted to make an animated line that I could lengthen shorten (by repeating itself, not by stretching) easily and be able to move it and tilt it at any angle without it breaking apart. Currently possible without getting too ridiculous with events?
B
51
S
10
G
7
Posts: 184
Reputation: 6,825

Post » Fri Nov 19, 2010 3:40 am

No. You might be able to do it with UV distortion, but it's quite a complicated task for something that should be simple. Your other option is a chain of sprites (done with a loop, can be intensive, but relatively simple to set up).
B
25
S
3
G
6
Posts: 1,197
Reputation: 5,620

Post » Fri Nov 19, 2010 6:16 am

Well I agree it should be simpler, but once you get the gist of it its not too bad.
[url:3gxb05u8]http://dl.dropbox.com/u/666516/uvtiled.cap[/url:3gxb05u8]
If you could add like a tag at the end to signify if the texture is tiled or not, it would be nice.
Image Image
B
161
S
48
G
90
Posts: 7,347
Reputation: 66,749

Post » Fri Nov 19, 2010 6:44 am

[quote="Davioware":dis0py41]No. You might be able to do it with UV distortion, but it's quite a complicated task for something that should be simple. Your other option is a chain of sprites (done with a loop, can be intensive, but relatively simple to set up).[/quote:dis0py41]
THANKS!
UV Distortion works perfectly, and it's easy. And animations and rotations work too. In fact the only problem (So far) is that collisions don't work correctly.

Both Axis
http://dl.dropbox.com/u/10316081/tiledsprite.cap

Horizontal Movement only
http://dl.dropbox.com/u/10316081/horizontalonly.cap

(Both Caps made in 0.99.96)

Edit: Newt beat me to it (And I was the one that asked for help)
B
51
S
10
G
7
Posts: 184
Reputation: 6,825

Post » Fri Nov 19, 2010 11:28 am

As far as collisions go you can always use canvas.
Image Image
B
161
S
48
G
90
Posts: 7,347
Reputation: 66,749


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest