Floating Text: Difference between revisions

m
what? why is it like this but not color
m (literal string)
m (what? why is it like this but not color)
 
(8 intermediate revisions by the same user not shown)
Line 4: Line 4:
  | tablocation = VFX
  | tablocation = VFX
  | eventtype = FloatingText
  | eventtype = FloatingText
  | versionorigin = r<code>Version</code>
  | versionorigin = r10a
  | shortcut = A
  | shortcut = A
}}
}}
'''Floating Text''' is an event in the '''VFX tab''' that displays text in the foreground of a room. This event is commonly used for lyrics or other places wherein alternatives like '''[[Show Status Sign]]''' or '''[[Show Dialogue]]''' may be less appropriate or useful. Its color, outline color, rotation, size, and position can be edited. It can't be moved.
'''Floating Text''' is an event in the '''VFX Tab''' that displays text in the foreground of a room. This event is commonly used for lyrics or other places wherein alternatives like '''[[Show Status Sign]]''' or '''[[Show Dialogue]]''' may be less appropriate or useful. Its color, outline color, rotation, size, and position can be edited. It can't be moved.


== Usage ==
== Usage ==
Line 56: Line 56:


To change the '''color''' of a ''syllable'', encapsulate the text in <code><color=#HEXALPHA></color></code> (e.g. <code>It/ is/ get/ting/ clo/ser/ and/ clo/ser/ to/ <color=#FF0000FF>you.</color>"</code>). Note that this only affects the '''text''' color, and not its '''outline'''.
To change the '''color''' of a ''syllable'', encapsulate the text in <code><color=#HEXALPHA></color></code> (e.g. <code>It/ is/ get/ting/ clo/ser/ and/ clo/ser/ to/ <color=#FF0000FF>you.</color>"</code>). Note that this only affects the '''text''' color, and not its '''outline'''.
To change the '''size''' of a ''syllable'', encapsulate the text in <code><size=NUM></\size></code> (with the backslash) (e.g. <code>Thank/ <size=100>GOD</size>/ it's/ o/ver/</code>). Note that this will make the encapsulated text not display if it's using the default latin pixel font. Any other font will properly display the resize.


To use any '''special characters''' literally without affecting the functionality, put a "<code>\</code>" behind the character (e.g. <code>Our/ worries/ and'''\/'''or/ our/ fears</code>).
To use any '''special characters''' literally without affecting the functionality, put a "<code>\</code>" behind the character (e.g. <code>Our/ worries/ and'''\/'''or/ our/ fears</code>).
Line 63: Line 65:
=== Advanced ===
=== Advanced ===


'''Floating Text''' events support [[RDCode]] variable reading, meaning they can read a variable and display its value. To use RDCode, use curly brackets (<code>{}</code>), and inside a valid RDCode arithmetic expression. (e.g. <code>Current score: {i0}</code> will display the current value of <code>i0</code>).
'''Floating Text''' events support [[RDCode#Variables|RDCode variable reading]].


Since the position of the floating text cannot be dynamically changed with the event on its own, '''[[Move Room]]''' events can be used on an empty transparent room with the text to move it.
Since the position of the floating text cannot be dynamically changed with the event on its own, '''[[Move Room]]''' events can be used on an empty transparent room with the text to move it.
Line 85: Line 87:


'''times''' (string)
'''times''' (string)
<br>???
<br>Possibly an old parameter. Currently useless. (''May be removed in the future?'')


'''color''' (string)
'''color''' (string)
Line 112: Line 114:


'''anchor''' (enum)
'''anchor''' (enum)
<br>Alignment of the text, separated as <code>VerticalHorizontal</code>, i.e., values: ''UpperLeft'', ''UpperCenter'', ''UpperRight'', ''MiddleLeft'', ''MiddleCenter'', ''MiddleRight'' ''LowerLeft'', ''LowerCenter'', ''LowerRight''.
<br>Alignment of the text, separated as <code>VerticalHorizontal</code>, i.e., values: ''UpperLeft'', ''UpperCenter'', ''UpperRight'', ''MiddleLeft'', ''MiddleCenter'', ''MiddleRight'', ''LowerLeft'', ''LowerCenter'', ''LowerRight''.


'''narrate''' (bool)
'''narrate''' (bool)
Line 122: Line 124:
=== Advance Text ===
=== Advance Text ===


<code>{ "bar": 1, "beat": 1, "y": 0, "type": "AdvanceText", "id": 0, "fadeOutDuration": 3 }</code>
<code>{ "bar": X, "beat": X, "y": X, "type": "AdvanceText", "id": 0, "fadeOutDuration": 3 }</code>


'''id''' (integer)
'''id''' (integer)