Re: BGT pack stuff and custom classes and functions

2015-02-15 Thread AudioGames . net Forum — Developers room : coltonhill01 via Audiogames-reflector
Re: BGT pack stuff and custom classes and functions I have a question of operators, I want to perform a complex operation. Is it possible to make it so that I may check if a number is the multiple of something, such as, is this number a multiple of 3, meaning 6, 9, 12, etc? URL: http

Re: BGT pack stuff and custom classes and functions

2015-02-14 Thread AudioGames . net Forum — Developers room : coltonhill01 via Audiogames-reflector
Re: BGT pack stuff and custom classes and functions thank you all. Well, as you might know if you guys read my threads, target 1. is out!http://coltonhill01.x10.mx/downloads/Ta … taller.exeEnjoy! URL: http://forum.audiogames.net/viewtopic.php?pid=204850#p204850

Re: BGT pack stuff and custom classes and functions

2015-02-14 Thread AudioGames . net Forum — Developers room : audiogames . net fan via Audiogames-reflector
Re: BGT pack stuff and custom classes and functions @ethin I have already designed a callback and sent it to Colton. URL: http://forum.audiogames.net/viewtopic.php?pid=204818#p204818 ___ Audiogames-reflector mailing list Audiogames-reflector

Re: BGT pack stuff and custom classes and functions

2015-02-14 Thread AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector
Re: BGT pack stuff and custom classes and functions You could do the following for the menu callback. In this callback example, I'll call your dynamic_menu object just 'menu'.int menu_callback (dynamic_menu@ menu, string data){if (key_pressed(KEY_SPACE)){// code here...}/

Re: BGT pack stuff and custom classes and functions

2015-02-10 Thread AudioGames . net Forum — Developers room : audiogames . net fan via Audiogames-reflector
Re: BGT pack stuff and custom classes and functions Callbacks really aren't that hard, at least they weren't for me. But, I also had been learning bgt for 2 and a half months before even looking at them. URL: http://forum.audiogames.net/viewtopic.php?pid=2043

Re: BGT pack stuff and custom classes and functions

2015-02-10 Thread AudioGames . net Forum — Developers room : lukas via Audiogames-reflector
Re: BGT pack stuff and custom classes and functions Right now, it might be a bit easier and faster for you to simply edit the while loop of the run_extended method of the dynamic_menu include script itself, adding the spacebar press check directly, rather than figuring out the callback

Re: BGT pack stuff and custom classes and functions

2015-02-09 Thread AudioGames . net Forum — Developers room : coltonhill01 via Audiogames-reflector
Re: BGT pack stuff and custom classes and functions It plays, now I want a preview function. Um, I need a callback for that so I can press space, and it'll play the sound. URL: http://forum.audiogames.net/viewtopic.php?pid=204259#p2

Re: BGT pack stuff and custom classes and functions

2015-02-07 Thread AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector
Re: BGT pack stuff and custom classes and functions Hm. I was under the impression that n=-1 was for escape. You can just change this line:n=menu.run()-1;You could do it with a sound object, yeah. Are you wanting to use one sound object, or do you want one for each sound?You would just

Re: BGT pack stuff and custom classes and functions

2015-02-06 Thread AudioGames . net Forum — Developers room : coltonhill01 via Audiogames-reflector
Re: BGT pack stuff and custom classes and functions And I kinda wanna use a sound object, as this target game is sound pool based, but I never use play stationery, instead I use sound objects. I know, I'm stupid. That's probably not the way to go. i would not like converting

Re: BGT pack stuff and custom classes and functions

2015-02-06 Thread AudioGames . net Forum — Developers room : coltonhill01 via Audiogames-reflector
Re: BGT pack stuff and custom classes and functions works! I did a bit of editing, but it works! Now, here's my question. It indeed adds the items, but the problem is that it basses them on 0, so if I press escape it plays the first sound, and every sound is one ahead. Is there a w

Re: BGT pack stuff and custom classes and functions

2015-02-02 Thread AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector
Re: BGT pack stuff and custom classes and functions Ah.Try this?(Haven't actually tested it):sound_pool pool; string[] files=find_files("sounds/*"); int n=0; dynamic_menu menu; for(uint i=0; i=0) { n=menu.run(); if(n>=0 and n URL: http://forum.audiogames.net/viewto

Re: BGT pack stuff and custom classes and functions

2015-02-01 Thread AudioGames . net Forum — Developers room : coltonhill01 via Audiogames-reflector
Re: BGT pack stuff and custom classes and functions I tried that and it said it couldn't return that. I've got menuX, maybe I can just add a counter and count up the aray. URL: http://forum.audiogames.net/viewtopic.php?pid=2033

Re: BGT pack stuff and custom classes and functions

2015-01-30 Thread AudioGames . net Forum — Developers room : keyIsFull via Audiogames-reflector
Re: BGT pack stuff and custom classes and functions if you're using dynamic_menu, the ad_item_tts function returns a string, which basically means you can just use the array created by find_files. URL: http://forum.audiogames.net/viewtopic.php?pid=203030#p2

Re: BGT pack stuff and custom classes and functions

2015-01-30 Thread AudioGames . net Forum — Developers room : coltonhill01 via Audiogames-reflector
Re: BGT pack stuff and custom classes and functions so I could create the aray to find files in that directory, then I could use a for loop to say as long as this counter is less than the length of this aray, add a menu item. My question is, how in the hell and I going to make it speak

Re: BGT pack stuff and custom classes and functions

2015-01-30 Thread AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector
Re: BGT pack stuff and custom classes and functions You could use a for loop to add each file to the menu.What I did when I wanted a sound browser was take my file browser and change it so that pressing enter on a file would play it instead of returning. I don't have that program on

Re: BGT pack stuff and custom classes and functions

2015-01-30 Thread AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector
Re: BGT pack stuff and custom classes and functions You could use a for loop to add each file to the menu.What I did when I wanted a sound browser was take my file browser and change it so that pressing enter on a file would play it instead of returning. I don't have that program on

Re: BGT pack stuff and custom classes and functions

2015-01-29 Thread AudioGames . net Forum — Developers room : coltonhill01 via Audiogames-reflector
Re: BGT pack stuff and custom classes and functions I'm sorry, I'm kinda new to bgt, and I can barely use arays right now. Here's what I would like to do, for my game. This is target. I want to have a folder called guns in the sounds folder, sounds/guns. I want there to

Re: BGT pack stuff and custom classes and functions

2015-01-29 Thread AudioGames . net Forum — Developers room : ogomez92 via Audiogames-reflector
Re: BGT pack stuff and custom classes and functions why not just program your own pack generator? It's easy. The way I do it in my game, if you are using a debug version (I.e: source code or compile debug... it will generator. Otherwise, it will open the pack. This is a one-time and f

Re: BGT pack stuff and custom classes and functions

2015-01-27 Thread AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector
Re: BGT pack stuff and custom classes and functions Packs use arbitrary strings to identify files. These can have the same syntax as file/folder paths, but that's purely for convenience.I don't remember if there's a way to get all the contents of a pack without extracting

Re: BGT pack stuff and custom classes and functions

2015-01-27 Thread AudioGames . net Forum — Developers room : burak via Audiogames-reflector
Re: BGT pack stuff and custom classes and functions Hi, why can't we add a folder at once to a pack? Also, for example, if we had multiple tpyes of a sound, for example, we have 6 voice folders and all of them has hi.wav, how do we seperate those from eachother? Thank you. URL:

Re: BGT pack stuff and custom classes and functions

2015-01-27 Thread AudioGames . net Forum — Developers room : keyIsFull via Audiogames-reflector
Re: BGT pack stuff and custom classes and functions I thought the file browser returned either a file object or a string containing the file path. So you just pass that as a parameter to the browse_pack function. In the function you'd ask the user for the deryption key, then you'

Re: BGT pack stuff and custom classes and functions

2015-01-27 Thread AudioGames . net Forum — Developers room : keyIsFull via Audiogames-reflector
Re: BGT pack stuff and custom classes and functions I thought the file browser returned either a file object or a string containing the file path. So you just pass that as a parameter to the browse_pack function. In the function you'd ask the user for the deryption key, then you'

BGT pack stuff and custom classes and functions

2015-01-26 Thread AudioGames . net Forum — Developers room : coltonhill01 via Audiogames-reflector
BGT pack stuff and custom classes and functions I want to create a script that will do the following.1: Locate a pack file on disk via a browse function.2: Open the pack file and ask for the decryption key, and then use that to decrypt the sounds in the file.3: Open the contents of the