zartan917
Abandoned Uranium Working
Posts: 14
|
Post by zartan917 on Jun 16, 2020 3:46:44 GMT
hi, now that mpagd may get commodore support, id like to get into it more fully. For game idea, each level will have some text on bottom of the screen that stays there the whole time. is there a link to how to do this/best method? kinda like a visual novel but with some action on top too. thanks!
|
|
|
Post by Minilop on Jun 16, 2020 6:33:28 GMT
Hi Zartan
This is how I would approach it
In the Editor menu select 'Text Messages'
Then in your text editor:
DEFINEMESSAGES "This is the text for Screen 0" "This is the text for Screen 1" "This is the text for Screen 2" "This is the text for Screen 3"
...and so on, so that each line corresponds to the screen number that you want the text for.
Then in the Events menu, select Restart Screen all you need to do now is include:
AT 21 0 ;or wherever you want the text to be displayed MESSAGE SCREEN ;SCREEN is a standard MPAGD variable that stores the number of the current screen, since you have aligned your text messages with your screen numbers you can use it to display the correct screen text
|
|
zartan917
Abandoned Uranium Working
Posts: 14
|
Post by zartan917 on Jun 17, 2020 2:36:51 GMT
hi thanks im trying that got 1 error (Label not found: evnt15?)
i typed: EVENT RESTARTSCREEN
AT 21 0; MESSAGE SCREEN ;SCREEN
in manual its no semicolon dont know if that matters AT 16 0 MESSAGE SCREEN ; display title of current screen
if you have a sample file to download i can compare, or if i can send you mine if need be? Also is PRINT better? I want the text always showing not sure but thanks for progress!!
|
|
|
Post by Minilop on Jun 17, 2020 6:49:53 GMT
First thing to check is that you hit the enter key after every line when writing scripts in Notepad. That error ( label not found: evnt15) would indicate that you do not hit enter at the bottom of evnt14.....and evnt14 is the Restart Screen event.
This has caught me out a bunch of times when learning MPAGD, often I'll get a MISSING ENDIF error, but when I check the event the ENDIF is there....I just hadnt hit ENTER after it. Now it's the first thing I check
The semicolon just tells the AGD compiler to ignore everything on the line after it, you use it for commenting
Hope this helps!
|
|
zartan917
Abandoned Uranium Working
Posts: 14
|
Post by zartan917 on Jun 18, 2020 3:09:46 GMT
hey that fixed that! thanks! Is there an updated manual that explains these things? I know the software keeps getting updated so it may be hard to include everything. id be willing to hire a programmer to get me started in all this...anyway in the mean time i have to figure out how to go to the next screen (to test 2nd text!!!!) be safe all.
|
|
|
Post by chentzilla on Jun 18, 2020 11:09:39 GMT
Looks like that was the problem in my code, too! Thanks waverleys!
|
|