2018-07-20 00:58:11

Hi all,

I am playing around with dynamic menu's in bgt. But i haven't found any solution yet for the following problem.

In my your_adventure audiogame i make use of tts dynamic menus. But when i want to have a small sound playing, to indicate you moved down a space in the menu, it simply doesn't work. For example:

dynamic_menu menu;
menu.set_speech_mode(speech.mode);
menu.add_item_tts("start a new game", "new");
tick.play();
menu.add_item_tts("load your last saved game", "last");
tick.play();
// other menu entries.
menu_result = menu.run("this is a test dynamic menu", true);
//etc

For example, the audiogame manamon has a sound playing while scrolling through it's dynamic menu's, while keeping it's tts in tact. How can i solve this problem?

Thanks in advance.

Greetz mike

Visit the following website to see what games we have:
http://www.nonvisiongames.com
Or the following English marketplace to see what retrogames and game merchandise I am selling:
https://www.retro-kingdom.com

2018-07-20 02:40:33

I think all that's doing is saying play the sound whenever the items are added. I looked in the BGT manual, what you want is discussed in the get position method under reference > helper layer > object reference > dynamic_menu.

And I am guessing you defined tick earlier in the code which you did not paste here because of brevity.

Facts with Tom MacDonald, Adam Calhoun, and Dax
End racism
End division
Become united

2018-07-20 04:03:44

I think you have to use a callback? I've done this but don't remember how I detected when the selection changed. Maybe there was just an extra variable for that purpose?

看過來!
"If you want utopia but reality gives you Lovecraft, you don't give up, you carve your utopia out of the corpses of dead gods."
MaxAngor wrote:
    George... Don't do that.

2018-07-20 07:40:13

if i understood correct, you want if go to like this...
you are in start game, and you want if go down, it play sound, if press enter, play sound, and etc.
do this
void setupmenu(bool music=false, bool main=false)
{
m.reset(true);
if (music==true)
m.add_music("menumus.ogg");
if(main==true)
m.set_callback(main_events, "");
else
m.set_callback(cme, "");
m.edge_sound="menuedge.ogg";
m.click_sound="menuclick.ogg";
m.open_sound="menuopen.ogg";
m.enter_sound="menuenter.ogg";
m.speak_letter=true;
//m.letters_autoactivate=true;
m.repeat_items_at_edges=false;
m.enable_first_letter_navigation=true;
m.allow_escape=true;
m.wrap=false;
m.enable_up_and_down=true;
}

2018-07-20 11:35:05

Hi,

@2

I will take a look there as well, sometimes i look over things, but normally i find things pretty easely. I am not sure on the tick devinition, but i think i will find it in the manual as well, thanks
@3 && @4

thanks to you as well for the information and example. I will continue playing around with it.

greetz mike

Visit the following website to see what games we have:
http://www.nonvisiongames.com
Or the following English marketplace to see what retrogames and game merchandise I am selling:
https://www.retro-kingdom.com

2018-07-20 11:35:34

At post 1. The best solution to this is using the m_pro.bgt include. It's actually another version of dynamic menu with lots of new features. One of them is what you want. You can asign the tick_sound in your game and you'll have a tick sound when ever the player moves between menu items

---
Co-founder of Sonorous Arts.
Check out Sonorous Arts on github: https://github.com/sonorous-arts/
my Discord: kianoosh.shakeri2#2988

2018-07-20 11:51:37

Hi,

@kianosh,

thanks a lot for your advice smile I haven't seen the m_pro.bgt in the include folder yet, but i will try to google for it later.

Greetz mike

Visit the following website to see what games we have:
http://www.nonvisiongames.com
Or the following English marketplace to see what retrogames and game merchandise I am selling:
https://www.retro-kingdom.com

2018-07-20 12:08:20

no you have to download it and put it in your project dir then include it into your script.

Facts with Tom MacDonald, Adam Calhoun, and Dax
End racism
End division
Become united

2018-07-20 12:22:23

Hi,

@ironcross,

Understand it, thank you smile

greetz mike

Visit the following website to see what games we have:
http://www.nonvisiongames.com
Or the following English marketplace to see what retrogames and game merchandise I am selling:
https://www.retro-kingdom.com

2018-07-20 17:41:02

Pelantas find nicklasMCHD in the github, He has a repossetory that all those bgt includes are there, You can download them as a zip file. Well i don't know if you call it repossetory or what, I'm not a professional github user.

---
Co-founder of Sonorous Arts.
Check out Sonorous Arts on github: https://github.com/sonorous-arts/
my Discord: kianoosh.shakeri2#2988

2018-07-20 21:47:48

Hi,

@kianosh,

thanks a lot for the pointer, i wasn't able to find it so thanks a lot smile

Greetz mike

Visit the following website to see what games we have:
http://www.nonvisiongames.com
Or the following English marketplace to see what retrogames and game merchandise I am selling:
https://www.retro-kingdom.com

2018-07-20 22:07:32

Here ya go

Facts with Tom MacDonald, Adam Calhoun, and Dax
End racism
End division
Become united

2018-07-25 14:55:44

Hi,

@ironcross32,

Thanks as well, before you posted that link i found the repository via google.

I will mess around it some more, thanks for all the help guys.

Greetz mike

Visit the following website to see what games we have:
http://www.nonvisiongames.com
Or the following English marketplace to see what retrogames and game merchandise I am selling:
https://www.retro-kingdom.com

2018-07-26 01:51:25 (edited by Jason SW 2018-07-26 01:53:49)

Hi,

There's also my enhanced menu include. I crated it by modifying the dynamic menu. One of the things I added was menu sounds.
http://www.blastbay.com/forum/viewtopic.php?id=1557

2018-07-26 03:50:15

Yeah I wanted to include a menu into my class where I used the callback for changing options without having to hit enter and go into a new menu, its a bitch. I want to write all my own code though and not use any resources or well, why code at all. I get it if you already know how shit works, but I don't, and I'm about dumb as fuck, so I need to learn and the only way to do that is to just dig in and fight with it. I don't even know why I keep trying to do it because I'm obviously not well suited for it, but I do and I keep on with it. The callback I couldn't even figure why it was bitching. I had to move it out of the menu method of the class I was writing. Then it was bitching about the callback not being able to access a class method and to use a deligate object, that's when I sort of was like.... um, what?

Facts with Tom MacDonald, Adam Calhoun, and Dax
End racism
End division
Become united