Discuss Scratch

Splodgey
Scratcher
100+ posts

A Text Box (With colours, text size, etc)

Moved to this thread
Splodgey's Text Box v1.1
Ever wondered why there's no text box? Or why you can make sprites “say” stuff, but not display pure text? Click here!


Contents
How to Use
Features & Supported Characters
Changelog
Plans
News & Announcements

Last edited by Splodgey (Sept. 16, 2013 11:57:27)

Splodgey
Scratcher
100+ posts

A Text Box (With colours, text size, etc)

Back to Home

How to Use

To use it, drag the “Text Box v1.0” sprite into your backpack, and unpack it wherever you want it.

To add text, add text to the “Text” list, and broadcast “New Text”.
If you wish to specify the coordinates, add the x coordinate to the “Text X” list, and the y coord to the “Text Y” list.
If you wish to specify colours & text size, add the colour value (a number) to the “Text Colour” list, the brightness value (-100 to 100) to the “Text Brightness” list, and the size (default is 10) to the “Text Size” list.

To delete text, set the “Delete ID” variable to the item in the text list you wish to delete, and broadcast “Delete Text”.

To modify text, replace the item in “Text” with whatever, and broadcast “Update Text”. This works with Text Y, Text Colour, Text Brightness and Text Size, but to modify the x coordinate, you must change the item in Text X Original.

If this didn't make sense, let me know… I don't know how well I explained it.

Back to Home

Last edited by Splodgey (Sept. 12, 2013 08:45:14)

Splodgey
Scratcher
100+ posts

A Text Box (With colours, text size, etc)

Back to Home

Features & Supported Characters
  • Modifiable Text Boxes
  • Text Colours
  • Text Size

Supported Characters
: ' - _ . ! ? , # @ = + ( ) ~ { } " $ % ^ & * ; | \ < > /

Approximate List of Colours
  • 0 - Red
  • 20 - Orange
  • 30 - Yellow
  • 50 - Green
  • 130 - Blue
  • 150 - Purple
  • 170 - Pink
  • 200 - Back to red
With brightness, all other colours are theoretically possible.

Back to Home

Last edited by Splodgey (Sept. 12, 2013 08:45:02)

Splodgey
Scratcher
100+ posts

A Text Box (With colours, text size, etc)

Back to Home

Changelog
v1.2
+Added text wrapping
*Fixed spaces not increasing with text size

v1.1
+Added text Size
+Added text Colours
+Added the Characters: ~ { } " $ % ^ & * ; | \ < > /

Back to Home

Last edited by Splodgey (Sept. 14, 2013 11:18:12)

Splodgey
Scratcher
100+ posts

A Text Box (With colours, text size, etc)

Back to Home

Plans
  • More Characters
  • Better Text Wrapping (An option for detecting spaces, so it doesn't wrap halfway through a wo
    rd)
  • [?] Multiple fonts
Post suggestions/requests bellow

Back to Home

Last edited by Splodgey (Sept. 14, 2013 11:20:11)

Splodgey
Scratcher
100+ posts

A Text Box (With colours, text size, etc)

Back to Home

News & Announcements

16/09/2012 Moving to this thread.
14/09/2013 v1.2 released!
14/09/2013 News & Announcements section created.

Back to Home

Last edited by Splodgey (Sept. 16, 2013 11:56:26)

WTS0100
New Scratcher
1 post

A Text Box (With colours, text size, etc)

Last edited by WTS0100 (Sept. 11, 2022 15:52:07)

_JustDont_
Scratcher
3 posts

A Text Box (With colours, text size, etc)

how do you make your textbox/description bigger?
SpaceDino3234
Scratcher
1 post

A Text Box (With colours, text size, etc)

I don't really know

Powered by DjangoBB