Page 1 of 1

Need help color sign font in LL:NS

PostPosted: August 12th, 2015, 2:59 am
by Joshio01
Right now in one of my levels I am trying to use HTML tags to create a sign with some green (00FF00) text. I have alreeady looked at a few other posts which have helped a bit but the problem is still occurring. What i am trying to do is have a single word in the sentence green while the rest is regular black while also having the entire text in a larger font size. I've tried a few different ways of doing it but none of them are helping. the sentence goes like this:
<FONT SIZE="35">Gone... for a long time. Need to get in? Use the 'pipe'(green isnt working here) on the other side.

Re: Need help color sign font in LL:NS

PostPosted: August 12th, 2015, 3:02 am
by Worldsixthocean
You should add </FONT> at the end. So the program will know where to turn the font size back to normal. Hope this help you ;)

Re: Need help color sign font in LL:NS

PostPosted: August 12th, 2015, 3:59 am
by Niicola
Try this : <FONT SIZE="35">Gone... for a long time. Need to get in? Use the <FONT COLOR="#00FF00">pipe</FONT> on the other side.

Re: Need help color sign font in LL:NS

PostPosted: August 12th, 2015, 8:12 am
by Karyete
Use this, FF helped me with the matter before.

Re: Need help color sign font in LL:NS

PostPosted: August 12th, 2015, 1:46 pm
by Doram
Don't forget that most of this is following HTML 4.01 rules.

Also, see this section in the SM63 LD Guide: Focused Guide: Using HTML in SM63 LD. (Pretty much all of it applies to LL, except that Links do not work, and images... well, I need to a bunch more research for that, apparently... Don't try to use images just yet...)

EDIT: Apparently, Images only exist in a box that bounds whatever text is there (the canvas is only as tall as the text), so to make an image appear, you need to put a the image (which counts as text, apparently), and a bunch of empty lines, and another character(like a period). Also, I'll find a better place for this, but I'm here now.

Other newly discovered Image use specifications in LL:Null Space 3.2:
  • The canvas is 420x480 pixels, and about 17 lines of standard sized text tall (the 17th is the first to have it's bottom chopped off at the bottom of the image) Also, the sign background is just under 12 lines tall.
  • Overflow goes up and down off sign background, all contents are centered vertically.
  • Considering a normal size line of text at the top, and 17 lines of text, oversized images are cropped to 420x446, and the top of the image is 33 pixels down from the top of the game edge, 115 pixels from the left, 105 pixels from the right, and runs all the way to the bottom (gotta love the eternal lopsided placement of these things).
  • Bring that to 19 lines of text (or omit the extra line of text above the image, with 17 lines), and you can get the top of the image to only 4 pixels from the top (and that top line of text is not visible any more). More than that, and you can take advantage of the full 480 pixels of height, although part of the image will be falling off of the top of the level.
  • Text DOES flow around the image - text is first centered across the window, and then shifted over by about 3/4 of the width of the image across all affected lines. Works on both left and right aligned images. Clearly, if the image takes up too much of the room, the text falls off of the 420px wide canvas.
  • Hspace does modify this flow, but works weirdly so that by the time the image is properly centered - hspace=(420-imagewidth)/2 - there is no additional space added to the equation (higher math than I feel like doing right now)
  • The parameters of height, width, and hspace can be omitted
  • align="right" works, align="center" does NOT work

All right. I'm getting tired now. I'll work more on this later.

Re: Need help color sign font in LL:NS

PostPosted: August 12th, 2015, 10:58 pm
by Joshio01
Thank you for your help guys! its working really well now!