Outlining Block(s)
DavidsChannel
Member Posts: 44
How can I make a 20x20px block with a 1px outline all around it? (the art isn't important)
And when I put two blocks next to each other the outlines should connect, and there should be one big outline around the two blocks (should work with more blocks and pretty much every shape). A project file would be much appreciated. Thanks!
And when I put two blocks next to each other the outlines should connect, and there should be one big outline around the two blocks (should work with more blocks and pretty much every shape). A project file would be much appreciated. Thanks!
Comments
Paint, gimp, inkscape, photoshop (powerpoint 8-} ) what ever application you want to use Just drag them into the scene and see if the outline match?
I dont really get the question here and why you want a projectfile??????
But then you'd need to check all of the blocks dynamically to assess which ones are the outer blocks that form the shape, and change their graphics accordingly.
It sounds like a logistical headache. I suspect tables would help a lot, similarly to building a Tetris game, but it's making my head hurt to think about it. Good luck!
Are you thinking of a grid? rather then outlines?
why not just draw them on your blocks before importing them in GS
If block overlaps with block = destroy!!
I think you need to provide some images/video of what you're trying it do before I can help any further
And yes, I do have pictures of the outlines imported (one side). They just need to be spawned in correctly. I need good expression that spawn and position the outlines correctly.
Any of these boxes similar - still dont get why not just draw the red line!!
This is fairly straightforward to do, you just need to make sure when a new block is spawned that another block - with a slightly wider boarder - is spawned underneath it.
These background blocks - as a collective group - must alway be behind the foreground blocks.
I could do you a quick project showing you the theory if you want . . .
See what I did there
Here you go - example file attached - just click on the screen to place a block:
You've been reported to the GameSalad forum joke police, expect a knock on your door.
:ar!
*runs and hides*
Here you go, the same deal but with a textured background.
That's enough thread derailing for one day
8-X
I could tell you, but it would cost you 10 awesomes.
Awesomes? So that means I need to "awesome" your posts?
Nope, I just figured it out myself. For everybody who doesn't know how it's done: Change the blending mode of the background to screen.
One question though: Is there a way of having the outline INSIDE the block? (inline) Cause my game is made on a block basis with 20x20px blocks. I just can't have the outline 22x22px big.
Still seems like you're overthinking the task at hand
He needs to have the blocks join up, so placing blocks in an 'L' shape will draw a line around the whole shape . . . making the blocks 18x18 (on a 20x20 grid) will mean each block in our 'L' will have an outline, which is not what he wants.