home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
No Fragments Archive 12: Textmags & Docs
/
nf_archive_12.iso
/
MAGS
/
TEXTMAGS
/
3RD_DIM
/
3RDDM16.MSA
/
ROUTINES
/
SCREENS.TXT
< prev
next >
Wrap
Text File
|
2004-06-27
|
2KB
|
57 lines
THE THIRD DIMENSION
When you are creating a game,you may wish the player to read a
message from off a notice on a wall.There are two ways to do
this.The first way is to use a text instrument to show the message
which will appear when the user clicks on a notice object on the
wall.Simply create an instrument then edit it to become a text
instrument.You now give your notice object the following condition-
IF ACTIVATED?
SOUND(3)
PRINT("YOU ARE READING A NOTICE BOARD",1)
ENDIF
This will write the message- You are reading a notice board -
to instrument one when the player touches the notice on the wall
and would make an audible sample (3) sound.
You could create an instrument that is the same size as the
view window which would allow you to use more lines of text.When
you wish to write the text onto the next line down,you add the
backslash and letter N to the text so that it uses the next line
down.E.g-
\N
So to print two lines off text you would write the following-
IF ACTIVATED?
PRINT ("THIS IS THE FIRST LINE OF TEXT \N AND THIS IS THE
SECOND LINE",1)
ENDIF
An alternative to this would be to load a screen picture that
contained text.You would write your message onto a picture in
your art pack and then save it off as the same size as a
border (load a border first to get the same size then clear the
screen).Then when someone touches the notice object again,it
would show the picture containing your text.The object condition
for the notice is as follows-
IF ACTIVATED?
LOADSCREEN("PICTURE.IFF,0)
SOUND(3)
DELAY(200)
CLS
ENDIF
The Delay command gives the player time to read the picture.CLS
clears the picture away after it has been read.You place the name
of your picture where it says Picture.IFF above.IFF is the
picture format.It could also be LBM,NEO or PI1. The 0 after the
comma displays just the picture and not the 3D world.Placing a 1
here instead would display the picture and 3D world.
Anthony Appleyard.