Border around Sprite box

Get help using Construct 2

Post » Fri Dec 07, 2012 5:32 pm

is it possible to put a border around a sprite, without using a loaded image containing one. If i use loaded image the border expands when resized. ie 1px becomes 2px at top, but maybe 1px left, depending on how it was resized.

I just want a border 1px around a sprite box, that will be created via Event Sheet with diferent sizes and keep the border always at 1px no matter rezing.

in HTML this would be a DIV with border stlye etc. how can i do this in C2.

I have looked in the forum incase already asked and havnt found answer hence post.

thanks
B
3
Posts: 5
Reputation: 610

Post » Fri Dec 07, 2012 6:41 pm

Have a look at the canvas plugin, You can do it with that.
B
79
S
24
G
54
Posts: 4,746
Reputation: 40,755

Post » Sat Dec 08, 2012 1:17 am

Here's part of a .capx that I was working on a while ago.

It was part of something bigger so there's some unused instance variables and families and things.. just ignore them.

Outlines

edit: if you want them thicker just set the size of the outline object to 2,2 / 3,3 etc.. although this won't create a proper corner... To fix it, you can add a variable containing the thickness to where it sets the lines length.keepee2012-12-08 01:23:13
B
28
S
8
G
1
Posts: 469
Reputation: 4,683

Post » Wed Dec 12, 2012 10:43 am

thanks a lot for the help :)
B
3
Posts: 5
Reputation: 610


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 25 guests