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?
Develop games in your browser. Powerful, performant & highly capable.
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).
Well I agree it should be simpler, but once you get the gist of it its not too bad.
http://dl.dropbox.com/u/666516/uvtiled.cap
If you could add like a tag at the end to signify if the texture is tiled or not, it would be nice.
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)
As far as collisions go you can always use canvas.