MESSAGE ROW (command): Difference between revisions

From MZXWiki
Jump to navigation Jump to search
No edit summary
m (message row → message line)
 
Line 1: Line 1:
'''MESSAGE ROW #''', '''SET MESG COLUMN #''', and '''CENTER MESG''' are commands which let the programmer change the on-screen position of the [[Message Row]], which can be used to make dialogue or messages appear to be coming from somewhere besides the bottom row of the screen, or to position a status bar.
'''MESSAGE ROW #''', '''SET MESG COLUMN #''', and '''CENTER MESG''' are commands which change the position of the [[Message Line]] within the screen. These commands can be used to make dialogue or messages appear to be coming from somewhere besides the bottom row of the screen or to position a status bar.


==Usage==
==Usage==
  . "putting the message row at the top of the screen and displaying two lines of text"
  . "putting the message line at the top of the screen and displaying two lines of text"
  message row is 0
  message row is 0
  set mesg column to 3
  set mesg column to 3
  * "~fHELLO,\nWORLD!"
  * "~fHELLO,\nWORLD!"
  wait for 50
  wait for 50
  . "now, we return the message row to its default settings and clear it"
  . "now, return the message line to its default settings and clear it"
  clear mesg
  clear mesg
  message row is 24
  message row is 24

Latest revision as of 02:21, 29 May 2025

MESSAGE ROW #, SET MESG COLUMN #, and CENTER MESG are commands which change the position of the Message Line within the screen. These commands can be used to make dialogue or messages appear to be coming from somewhere besides the bottom row of the screen or to position a status bar.

Usage

. "putting the message line at the top of the screen and displaying two lines of text"
message row is 0
set mesg column to 3
* "~fHELLO,\nWORLD!"
wait for 50
. "now, return the message line to its default settings and clear it"
clear mesg
message row is 24
center mesg

Supplementary Commands

* "string"

See main article.