Mask Tutorial?

For questions about using Classic.

Post » Thu Jun 16, 2011 4:57 pm

Hello again. I made a level generator for my WIP game, but I want it to look like a ancient cave. Currently, the Objects making the level are black squares, which I want to make seamless using a tiled background. How would I use "Mask" to achieve this?

TL;DR How do I make the black boxes appear as seamless using Mask and TLBG?

Here is an EXE (safe) of the level thing.

http://dl.dropbox.com/u/21499454/Games/labyrinth.exe

EDIT:

Controls

Arrow keys: move/jump

Shift+Arrow keys: Change gravity direction
B
26
S
7
G
5
Posts: 202
Reputation: 5,235

Post » Thu Jun 16, 2011 8:12 pm

A mask, as in a shader applied to your tiles via the tiled background would be very inefficient as you would would have to keep the tiles, and have the fx running all the time.
A better way would be to give the tiles their own seamless texture, and vary the look by changing the texture around corners. Something similar to this method:
[url:p0loiqqf]http://www.saltgames.com/?p=184[/url:p0loiqqf]
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Post » Thu Jun 16, 2011 9:13 pm

[quote="newt":16w75enz]A mask, as in a shader applied to your tiles via the tiled background would be very inefficient as you would would have to keep the tiles, and have the fx running all the time.
A better way would be to give the tiles their own seamless texture, and vary the look by changing the texture around corners. Something similar to this method:
[url:16w75enz]http://www.saltgames.com/?p=184[/url:16w75enz][/quote:16w75enz]

I have a texture for it, but if I overlap it around the block, and have more than one block (which I do), it would not be seamless:



If you mean generate its look upon loading, then that would really make it load longer, wouldn't it?

Anyways, I've decided to give it a silhouette look instead. The BG is still bricks, but the Walls and Player are black, shadowy figures. :)

Thanks for helping though.
B
26
S
7
G
5
Posts: 202
Reputation: 5,235


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 7 guests