simple background tiling question

Monkey Forums/Monkey Programming/simple background tiling question

C10B(Posted 2013) [#1]
Hi,
The background of my app is currently black with some graphics on it. The black background is visible in places, and what I would like to see is a texture.
What is the best way to apply a tiled texture to the whole of the background please?
TIA


MikeHart(Posted 2013) [#2]
Draw the tiled texture image onto the canvas :-) Before your other objects of course.


zoqfotpik(Posted 2013) [#3]
http://www.monkeycoder.co.nz/Community/posts.php?topic=3135#32523

WIDTH and HEIGHT are global variables for deviceheight and devicewidth. Ticks is a global variable for how many ticks have elapsed since the game was created-- you could replace it with millisecs or whatever, or just do away with rotation entirely.


C10B(Posted 2013) [#4]
Mike said "Draw the tiled texture image onto the canvas"
Thanks Mike, but that was my question, how to do that!

zoqfotpik: Thanks for the info. I should have guessed that was a way to do it (me manually place every single instance of the repeated texture), I was hoping for an option where I simply specify a rectangle, an image, and click "tile". But I'm happy with the method provided as it gives a great deal of control.
Thank you


MikeHart(Posted 2013) [#5]
C10B: Sorry, I wasn't able to extract "How do you draw..." out of "What is the best way..".