Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Alex Trivien on Sun 25/10/2015 22:50:34

Title: [SOLVED] Problems with BASS Template
Post by: Alex Trivien on Sun 25/10/2015 22:50:34
Hi everyone !

I try to use the BASS Tamplate and i have found some stucking stuff.

1) When you try to move your inventory to the bottom of ste screen and set "always shown" - it change nothing =))
so your inventory now is in the bottom of the screen but not visible, so you must move your mouse to the top of the screen, and then inventory will apear but in the bottom =)

2) i can't find how to show the speech and thoughts in the text window GUI

in script i found that everythis is doing like this


      player.Say("Looks alright.");

"Display(...); " - is what i need, but i can't move it in the bottom of the screen.

HELP, please =))))

Title: Re: Problems with BASS Template
Post by: Snarky on Tue 27/10/2015 15:08:41
1) I haven't looked at the BASS Template code, but it probably has some code that specifies that the inventory should open when you move the cursor to the top of the screen. (Something like "if(mouse.y < SOME_NUMBER)" inside a repeatedly_execute() function) If so, you'll have to change it to "if(mouse.y > SOME_OTHER_NUMBER)".

2) The Display() function is hardcoded to display a message in the middle of the screen. I don't think you can move it. When you want to display speech and thoughts, you should use the Character.Say() and Character.Think() functions.
Title: Re: Problems with BASS Template
Post by: Crimson Wizard on Tue 27/10/2015 15:44:54
There is DisplayAt function that lets you specify Y coordinate for the message:
http://www.adventuregamestudio.co.uk/wiki/Text_display_/_Speech_functions#DisplayAtY
Similarily, you could use Character.SayAt:
http://www.adventuregamestudio.co.uk/wiki/Character_functions_and_properties#Character.SayAt
Title: Re: Problems with BASS Template
Post by: Alex Trivien on Wed 18/11/2015 14:02:57
Snarky & Crimson Wizard

Thank you =)