Text black border

For questions about using Classic.

Post » Mon Jun 09, 2014 7:05 pm

Hey guys !

I am creating a multiplayer game and I want to put a black border on the username of players but I don't have any idea of how to do it, I tried to do the same text with x-1 ; y - 1 ; x + 1 ; y + 1 etc... but it looks ugly :s

Is there any way to do it with effects or something like ? :p

Thanks in advance

(this is a picture of what I want if you don't understand : Image
B
7
S
1
Posts: 58
Reputation: 683

Post » Tue Jun 10, 2014 3:09 am

Probably best to use the spritefont plugin for that, and have a custom font that has borders.
"Construct 4 lets YOU make advanced games! (they wont run anywhere)" Construct Classic - Examples Kit Dropbox is a pile of trash and if you need my old files PM me! :)
B
125
S
42
G
17
Posts: 2,228
Reputation: 19,918

Post » Tue Jun 10, 2014 3:40 am

Please correct me if I'm wrong. But isn't spritefont very buggy? I've heard other users claim this.
B
10
S
3
G
1
Posts: 103
Reputation: 1,390

Post » Tue Jun 10, 2014 6:49 am

TunaUppercut wrote:Please correct me if I'm wrong. But isn't spritefont very buggy? I've heard other users claim this.

Otherway around actually. If you want your font to look the same on all devices then spritefont is the way... in fact I only ever use spritefont.

Edit: once you got a template for sprite font you can use photoshop styles to change it to get unbelievable look and feel.
a and c using glass effect
You do not have the required permissions to view the files attached to this post.
You think you can do these things, but you can't, Nemo!
Just keep reading.
Just keep learning.
B
65
S
16
G
9
Posts: 1,429
Reputation: 12,718

Post » Tue Jun 10, 2014 8:15 am

Well, thanks for your anwser :)

I'll try with SpriteFont then, I tried the "outline" effect too but the line color can't be changed (white) and it's really ugly (pixelated).

Edit : little problem, the SpriteFont's download link is broken :(
B
7
S
1
Posts: 58
Reputation: 683

Post » Tue Jun 10, 2014 8:45 am

playerelite wrote:Well, thanks for your anwser :)

I'll try with SpriteFont then, I tried the "outline" effect too but the line color can't be changed (white) and it's really ugly (pixelated).

Edit : little problem, the SpriteFont's download link is broken :(


What Link? :roll:

This is all you need to get you on your way.
grab latest version GiveYourFontsMono(spacing) v2.2
Once you created spritefont it is in png format. Open in photoshop and change the font to what you want.
It takes a bit of work to get it just right, but it is worth the effort.
Then insert spritefont into your game like and it has default which is ugly, open and browse for you spritefont png. Don't forget to ajust your character widths, hieghts etc as whatever you choose them as
You think you can do these things, but you can't, Nemo!
Just keep reading.
Just keep learning.
B
65
S
16
G
9
Posts: 1,429
Reputation: 12,718

Post » Tue Jun 10, 2014 9:23 am

I think he's using the Construct Classic version though, and I don't remember if that one was broken or not, but you can get it here: https://dl.dropboxusercontent.com/u/471 ... ont_CC.zip

Old spritefont forum page: http://69.24.73.172/scirra/forum/viewto ... f=2&t=4078

Edit: Also, I just realized another method you could use is Pixel Shader FX (there should be an outline effect around if not built-in :) )
"Construct 4 lets YOU make advanced games! (they wont run anywhere)" Construct Classic - Examples Kit Dropbox is a pile of trash and if you need my old files PM me! :)
B
125
S
42
G
17
Posts: 2,228
Reputation: 19,918

Post » Tue Jun 10, 2014 11:17 am

jayjay - Oh, boy do I feel dumb. I didn't see the CC in breadcrumbs.
Sorry playerelite, I'm talking construct2. CC isn't being updated anymore. Construct2 is its successor.
You think you can do these things, but you can't, Nemo!
Just keep reading.
Just keep learning.
B
65
S
16
G
9
Posts: 1,429
Reputation: 12,718


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests