Re: Questions

2017-10-08 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: Questions Forums and wikis tend to be written in php, (or they were last decade, at least), if that tells you anything. _javascript_ might be easier, if it's singleplayer. But I might be biased because I never got anywhere with php. This might be more my webhost's fault, but eh. URL:

Re: BGT question

2017-10-23 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: BGT question Yes. Hint: for the sound object, it's a property, and for the sound_pool, there are, like, three ways. URL: http://forum.audiogames.net/viewtopic.php?pid=334890#p334890 ___ Audiogames-reflector mailing list

Re: BGT question

2017-10-23 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: BGT question You want random (0, size-1), and size must be greater than 0.I typed the example on my phone, so haven't tested it yet.  reading it again, nothing jumps out at me as likely to break it. Have you tried it exactly as written? If it compiles, how many times did you run it

Re: BGT question

2017-10-23 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: BGT question You want random (0, size-1), and size must be greater than 0.I typed the example on my phone, so haven't tested it yet.  reading it again, nothing jumps out at me as likely to break it. Have you tried it exactly as written? If it compiles, how many times did you run it

Re: BGT question

2017-10-23 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: BGT question You want random (0, size-1), and size must be greater than 0.I typed the example on my phone, so haven't tested it yet. It is literally a rewrite of the first program I ever wrote, though, and reading it again, nothing jumps out at me as likely to break it. Have you tried

Re: BGT question

2017-10-23 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: BGT question If I understand correctly, you probably want two arrays: one with the questions, and the other with the answers.You'd have answers[0] be the answer to questions[0], answers[1] for questions[1], etc.Then you'd create a random int to decide which question to show. Ex, int

Re: BGT question

2017-10-23 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: BGT question Something like this (replace the questions and answers as you wish):void main() {    int size=3; // Or however many questions you want.    string[] questions(size);    string[] answers(size);    questions[0] = "Say hello.";    answers[0] = "hello";    questions[1] = "What

Re: BGT question

2017-10-24 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: BGT question Yes, BGT can play .ogg files. If you want to do a non-repeating random sequence, that's a bit more complicated.You could accomplish this in several different ways. For example, you could have a third array, this one of bools, and do something like this:bool[]

Re: question regarding the bgt rotation package

2017-12-04 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: question regarding the bgt rotation package Aprone's guide to movement and panningYou can skip the movement section, since the rotation package handles that more or less identically. URL: http://forum.audiogames.net/viewtopic.php?pid=341046#p341046

Re: getting nvda speak full sentinces in bgt

2017-12-15 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: getting nvda speak full sentinces in bgt It sounds like a form-related issue, though, and this would resolve it simply by providing the option to more smoothly incorporate speech into the form, rather than relying on speech and Windows controls to work together as desired. Ex, the

Re: using indefinite amounts of sound objects in bgt, is it possible?

2017-12-16 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: using indefinite amounts of sound objects in bgt, is it possible? The sound_pool is what you want. It defaults to a maximum of 100 sounds, but you can increase that if need be. (If you have more than 100 sounds playing simultaneously, maybe reconsider some aspects of the design? It's

Re: Accessing the BGT Documentation?

2017-12-14 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: Accessing the BGT Documentation? I think the only major out-of-date-ness is mostly that BGT is using an older version of Angelscript. It's not out of date in the sense of compatibility, security, etc.Well, there is that problem where antivirus programs have been flagging games made in

Re: getting nvda speak full sentinces in bgt

2017-12-14 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: getting nvda speak full sentinces in bgt If you use windows controls like input_box and question, those will take priority with the screen reader. You can either put the same information in the dialog box, or use some alternative like the form script that some games use. URL:

Re: Accessing the BGT Documentation?

2017-12-14 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: Accessing the BGT Documentation? It hasn't been updated in a while, yeah... but what would those hypothetical updates have changed? At best, it'd've been better dll support, structs, and maybe-maybe unicode. And hopefully speed improvements.Ironcross has it right in terms of

Re: Accessing the BGT Documentation?

2017-12-15 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: Accessing the BGT Documentation? The angelscript that BGT uses is very similar to C#, and the syntax will be very familiar if you look at Java, C++, etc. Really, though, it's fairly easy to go from one to the other, since the concepts are the same just about everywhere. There are

Re: Accessing the BGT Documentation?

2017-12-13 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: Accessing the BGT Documentation? I don't think there's anything out of date about the tutorials that isn't out of date about BGT itself, but maybe I missed something? If you want to go looking for files directly, you're looking for bgt.chm, in the main bgt directory. It's a compiled

Re: Making the Legend of Zelda Ocarina of time accessible to the blind

2017-11-16 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: Making the Legend of Zelda Ocarina of time accessible to the blind For layout information, maybe look up walkthroughs for reference. Some are more or less detailed than others, or focus on different aspects, so just looking at one might not quite be enough. URL:

Re: multidimensional arrays in BGT

2017-11-04 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: multidimensional arrays in BGT Consider this:int[][] map = get_map();int[] row = map[0];map[1] = row;if (map[0][0] != map[1][0]) {     alert("fatal error", "BGT is broken!");}Since a 2 dimensional array is a 1 dimensional array whose type is int[], you can pass around rows from the 2

Re: I'm Not Sure What to use to code

2017-11-07 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: I'm Not Sure What to use to code Dangit, now I'm going to spend the rest of the week trying to build such a thing, update last year's crappy 3d editor at best, then get beat up by ADHD until I ultimately drown my self-disappointment in reading useless things on the internet. Thanks a

Re: I'm Not Sure What to use to code

2017-11-07 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: I'm Not Sure What to use to code Dangit, now I'm going to spend the rest of the week trying to build such a thing, update last year's crappy 3d editor at best, then get beat up by ADHD until I ultimately drown my self-disappointment in reading useless things on the internet. Thanks a

Re: Determining if keys were pressed sequencially in Pygame?

2017-11-08 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: Determining if keys were pressed sequencially in Pygame? I would create a function for when a key is pressed, and when a key is released. You might want to track which keys are down, but how would depend on how many you'd want to track and why. There would be one or more variables to

Re: question regarding the bgt rotation package

2017-12-04 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: question regarding the bgt rotation package The sound positioning is a fork of BGT's sound_positioning include, which is very much made for more 3rd person perspectives. You'd basically need to rewrite position_sound* functions to be more 1st person.Aprone put up a guide to this sort

Re: Handles in bgt

2017-12-07 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: Handles in bgt I'm not sure if there's a difference. I generally use the [ a-t ] on both sides only when comparing (ex, if(@a==@b).). I think BGT tries to make the right side match the left—you'll notice that the compiler gives a warning instead of an error if you type if(@a==b).The

Re: What happens if you try to put bgt object variables into dictionaries?

2017-12-09 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: What happens if you try to put bgt object variables into dictionaries? Yes, you can put objects into dictionaries. Just be sure to use the [ a-t ] sign, otherwise you'll get a null pointer error.However, the serialization functions do not work with objects, so you can't use this to

Re: BGT question

2017-10-24 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: BGT question You don't need to include license.txt, just the nvda controller client dll.I'm not sure what's up with the ogg issue. Can you paste an example that doesn't work? URL: http://forum.audiogames.net/viewtopic.php?pid=335007#p335007

Re: BGT question

2017-10-24 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: BGT question You don't need to include the dll, just use the screen_readerlesset_library_path funtion (I forget what it's called, but it's in the manual near the screen_reader_speak function).BGT plays .wav and .ogg. You would need external libraries to play other filetypes. URL:

Re: BGT question

2017-10-24 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: BGT question BGT does have issues with wav files of certain bitdepths. Specifically, I think it only plays wavs with bitdepths that are powers of 2 (8, 16, 32), but not 24 or 36, etc. Maybe try playing c:\\windows\\media\\ding.wav, since that one always works. That file got kinda quiet

Re: BGT question

2017-10-24 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: BGT question Yes, BGT can play .ogg files. If you want to do a non-repeating random sequence, that's a bit more complicated.You could accomplish this in several different ways. For example, you could have a third array, this one of bools, and do something like this:bool[]

Re: BGT question

2017-10-24 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: BGT question Something like this (replace the questions and answers as you wish):void main() {    int size=3; // Or however many questions you want.    string[] questions(size);    string[] answers(size);    questions[0] = "Say hello.";    answers[0] = "hello";    questions[1] = "What

Re: how to make cutscenes in BGT?

2017-10-25 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: how to make cutscenes in BGT? The way I do it is to use a string array containing the lines. If the scene calls for something more complicated, like sounds or music changes, I include these as commands at the end of the line they should follow, separated from the spoken text by |, and

Re: -Calling all detectives! I need your help!

2017-10-21 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: -Calling all detectives! I need your help! Sherlock Holmes is in the public domain, in case you, say, think it might be worth lifting ideas from his and Watson's adventures, for inspiration. There would need to be adapting for the setting, natch, but a few might be sufficiently heinous

Re: -Calling all detectives! I need your help!

2017-10-21 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: -Calling all detectives! I need your help! Sherlock Holmes is in the public domain, in case you, say, think it might be worth lifting ideas from his and Watson's adventures, for inspiration. There would need to be adapting for the setting, natch, but a few might be sufficiently heinous

Re: unity game engine not accessible with screen reader?

2017-12-20 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: unity game engine not accessible with screen reader? There is no such thing. That's why Audio Games are only nominally where indi games were before Unity, MUGEN, RPG Maker, 3d Game Studio, or Macromedia Flash. We have to do everything from scratch, while everyone else can draw it

Re: I need a manual of physics calculation please

2018-01-05 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: I need a manual of physics calculation please Knitpick: the acceleration due to gravity does not require mass, unless you are talking about the planetary scale or greater. v.y-=9.8*dt will suffice.This is not as horrifically complex and power-demanding as everyone is making it out to

Re: Blog post: Why does BGT get bashed?

2018-01-16 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: Blog post: Why does BGT get bashed? Sometimes it feels like people are saying "You should stop playing with Legos and do something better. Here, have a saw, made with the best steel in the universe. Now go finish that Eiffel Tower you were working on." URL:

Re: Blog post: Why does BGT get bashed?

2018-01-15 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: Blog post: Why does BGT get bashed? Oh, and one more thing. BGT's weird bug where, occasionally, a sound will get stuck in an infinite loop of the last second or so, and the game hangs. That one's mysteriously stayed away for quite a while, so I forgot to mention it. Yeah, that major

Re: Blog post: Why does BGT get bashed?

2018-01-15 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: Blog post: Why does BGT get bashed? Multithreading was a thing when BGT was new. I expect it was singlethreaded deliberately and no amount of unpaid updating would have changed that. And yeah, that's a problem. URL: http://forum.audiogames.net/viewtopic.php?pid=347870#p347870

Re: Blog post: Why does BGT get bashed?

2018-01-15 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: Blog post: Why does BGT get bashed? Still don't get the "It's not being updated, therefore it's bad" position. Someone want to explain it? URL: http://forum.audiogames.net/viewtopic.php?pid=347854#p347854 ___ Audiogames-reflector

Re: the garbage collector in bgt

2018-01-24 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: the garbage collector in bgt This happens if you have an enormous Infant Mortality Rate, which is to say, way too many variables being destroyed in a frequently used function. An example that happened to me: I tried to base my geometry objects on a super-simplified version of Java2d,

Re: Voice chat in BGT

2018-01-09 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: Voice chat in BGT Those features will not make audio games better. Making better games will make audio games better. I use BGT because no one has come close to making the most of it, and if we can't extract all the value from something easy, why should we assume we're ready for

Re: Handles in BGT, need help

2018-01-09 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: Handles in BGT, need help To be honest? I don't see the point, either. This makes sense for low level stuff, like passing around pointers for ints in C, but BGT would be just fine—nay, better off—if it was just assumed implicitly that a reference to an object is it's handle unless

Re: Blog post: Why does BGT get bashed?

2018-01-12 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: Blog post: Why does BGT get bashed? _javascript_ was my primary platform until 2008, and I still used it some as late as 2010. One of the big problems I had was cross-platform compatibility and audio support. Hah-flippin'-hah, you sure got me there, internet. -_-The last time I tried

Re: Developing a 2D, topdown stealth adventure

2018-02-02 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: Developing a 2D, topdown stealth adventure Libaudioverse, maybe? It's specifically designed to improve on problems that Camlorn found in OpenAL when he made the camlorn_audio wrapper.When you say line of sight of guards, what specifically are you trying to do? Is this just to determine

Re: How can blinds handle CSS withouth sighted help?

2018-02-04 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: How can blinds handle CSS withouth sighted help? Jaws and NVDA have keystrokes (jaws/nvda + f, and there are others) for reading format information. This does help with CSS if you've gotten something wrong and it resorts to the default, but if there's a case where the error isn't

Re: Creating bidimensional sound arrays in BGT and playing them

2018-02-05 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: Creating bidimensional sound arrays in BGT and playing them You need @ in BGT when working with object handles. It's a strange querk of the language.The forum sometimes changes the @ sign to something different, like [a-t], so remember that's meant to be the @ symbol. URL:

Re: Moving away from BGT and learning python

2018-02-17 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: Moving away from BGT and learning python a= (b) ? c : d; switch (e) {case f : g(); break;case h : i(); break;}And then there are c-style macros.Python is supremely simpler overall, but I do need the terniary operation far more often than swapping.Yeah, Python eventually added its own

Re: Moving away from BGT and learning python

2018-02-19 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: Moving away from BGT and learning python You can get an equivalent to NPEs in Python, can't you? I mean, doesn't the exact same principal apply to trying to call a.f() if a is null or if a is None?Basically, you can't expect that a function or method will never be called with invalid

Re: Moving away from BGT and learning python

2018-02-18 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: Moving away from BGT and learning python Yeah. I find that, while IDEs reduce some of the work, they make up for it with clutter and navigation and gah just let me write the code in a text editor, read the compilation results, and test the thing. Notepad + the command prompt is

Re: making a three d map engine for an fps with bgt

2018-02-20 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: making a three d map engine for an fps with bgt I missed that one. How does it work? Like, objects vs voxels? Scenegraphs vs arrays vs dictionaries? Tiles with height? None of the above? URL: http://forum.audiogames.net/viewtopic.php?pid=353122#p353122

Re: Question about using accessible_output in python.

2018-02-23 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: Question about using accessible_output in python. The version I'm using is with Python 2.7, so something might have changed in the meantime. URL: http://forum.audiogames.net/viewtopic.php?pid=353566#p353566 ___ Audiogames-reflector

Re: Node.js libraries suitable for audio games

2018-02-24 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: Node.js libraries suitable for audio games I was under the impression that node.js was primarily for server-side stuff?IIUC, all that matters audio-wise is the Audio object, which apparently most browsers now support. If there's some better alternative, ("better" not "technically

Re: Moving away from BGT and learning python

2018-02-24 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: Moving away from BGT and learning python I usually just save to a file with notepad, then run it in python by importing . IIRC, this doesn't work so well if you want to test changes, since I don't think python will update the module if you try to import it again, unless it failed to

Re: Question about using accessible_output in python.

2018-02-22 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: Question about using accessible_output in python. If all you want is speech, prioritizing the screen reader and defaulting to installed voices if no screen reader can be found, you only need like two lines:from accestsible_output2 import autospeech =

Re: Question about using accessible_output in python.

2018-02-22 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: Question about using accessible_output in python. If all you want is speech, prioritizing the screen reader and defaulting to installed voices if no screen reader can be found, you only need like two lines:from accessible_output2.outputs.auto import

Re: Question about using accessible_output in python.

2018-02-23 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: Question about using accessible_output in python. Did you include the s at the end of outputs? URL: http://forum.audiogames.net/viewtopic.php?pid=353494#p353494 ___ Audiogames-reflector mailing list

Re: Moving away from BGT and learning python

2018-02-24 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: Moving away from BGT and learning python When you start something like an if, while, class, or function, Python expects an indented block to follow. The editor therefore waits until you enter an unindented line, or leave a blank line, before it tries to execute the code.If you're

Re: Moving away from BGT and learning python

2018-02-24 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: Moving away from BGT and learning python You need to press enter so that Python knows you're done with the indented part. URL: http://forum.audiogames.net/viewtopic.php?pid=353683#p353683 ___ Audiogames-reflector mailing list

Re: Moving away from BGT and learning python

2018-02-26 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: Moving away from BGT and learning python Try saving it to a file, and run that. If the results are the same, something odd is happening (maybe spaces are showing up as the wrong character or something like that?). If it works from a file, then the interpreter is having trouble with

Re: Audiogames In JavaScript?

2018-02-28 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: Audiogames In _javascript_? *gets halfway through post 6, goes on a mental rant about all the ever-thickening layers of obfuscation and complexity to do basic things**Reads last two sentences**Dies*I mean, I get that computers don't work like human minds. "i get that playing sound, for

Re: making a three d map engine for an fps with bgt

2018-02-27 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: making a three d map engine for an fps with bgt If you're using rotation, you do want those coordinates. You'd want to round them when giving them to the player, or when getting indeces in arrays, but yeah. URL: http://forum.audiogames.net/viewtopic.php?pid=354023#p354023

Re: Modules to help build Audio Games in the browser

2018-03-15 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: Modules to help build Audio Games in the browser How I made js audio games back in the days of IE6:Usually, the script for the game was in the html file, so as to have easy access to named elements. I offloaded the "getElementByX" crap to functions as much as possible.I kept an

Re: BGT Handles

2018-04-10 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: BGT Handles I'm not quite sure why, but generally speaking, the only time you need the @ sighn on the right side of an = is when comparing (ex, if(@a==@b), but @a=b). URL: http://forum.audiogames.net/viewtopic.php?pid=359146#p359146 -- Audiogames-reflector mailing list

Re: Trying to understand the sound_pool metod

2018-04-04 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: Trying to understand the sound_pool metod Generally, you only need one sound_pool. It's very rare that an audio game would need more than one (For example, I use another in ECTAS to create a perilax effect for background sounds, which only makes sense for a side-scroller).For your

Re: BGT Handles

2018-04-13 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: BGT Handles I'm not sure that it works with strings in bgt. I don't think it works with vectors, either. And not for primitives. So mostly for dictionaries, sounds, classes you create, that sort of thing. URL: http://forum.audiogames.net/viewtopic.php?pid=359643#p359643 --

Re: How can I learn BGT

2018-04-05 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: How can I learn BGT Copy some of the examples, try to run them. When you get that to work, try making small changes to get different results. Repeat with slightly more complicated examples. Try to make something original via what you learn from these, even if it's just copying and

Re: just about had it with joystick implementation errors

2018-03-30 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: just about had it with joystick implementation errors if (key_pressed and weapon.rapidfire==false) or (key_down and weapon.rapidfire) then fireMaybe; depends on the specifics. But something like that. URL: http://forum.audiogames.net/viewtopic.php?pid=357488#p357488 --

Re: BGT, same string in multiple use, problem.

2018-04-02 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: BGT, same string in multiple use, problem. It's hard to understand exactly what you're doing. The open method of the file object does create a blank file if you use "w" or "wb" as the mode parameter, even if you write nothing in particular. URL:

3D editor concept demo, contains demo recording

2018-03-18 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
3D editor concept demo, contains demo recording I posted this before, but I fixed a couple bugs and made it less picky about the sounds.https://sendspace.com/file/m8vvw9Contrary to what I found in the recording, it is supposed to play step-sounds if you set a terrain key; I just tried it

Re: Audiogames In JavaScript?

2018-03-03 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: Audiogames In _javascript_? Pygame is for things like keyboard input, the game window, simple 2d graphics, and rectangles if you're using int precision. Pyglet seems to have overtaken pygame in popularity, fwiw. URL: http://forum.audiogames.net/viewtopic.php?pid=354431#p354431

Re: Moving away from BGT and learning python

2018-02-26 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: Moving away from BGT and learning python From the Python interpreter, you import it. If the file is HelloWorld.py, you would type>import HelloWorldAnd that would do it. I'm not sure that there's an easy way to repeat this without restarting the interpreter, though, if you make changes

Re: null access point - help with some code?

2018-02-25 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: null access point - help with some code? I would guess that coinrun starts out with the array full of nulls, rather than creating all the coins and their handles when you resize it, so you need to create coins before you try to modify them. So at the top of the for loop that sets the

Re: make unity 3d accessible

2018-03-05 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: make unity 3d accessible Might they do something if they were offered a big bag of money? I don't know where we would find a big enough bag of money to motivate a company for whom the status quo seems to be acceptable, but when in Capitapolis... URL:

Re: Controller Support?

2018-11-13 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: Controller Support? The joystick class works with PS controllers for me. I could never get Xbox to work on Win8 in general, so not sure how BGT feels about it when it does work.With Java, 10 years ago at least, I used Jinput. I think Pygame comes with controller support, but I haven't

Re: Controller Support?

2018-11-16 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: Controller Support? @9: They work for me on Win8 without anything extra. It seems weird that they wouldn't work on 10. I mostly just use PS1 controllers via USB adapter, since I'm the one person who prefers the d-pad, but PS4 has worked whenever I've tested it. URL:

Re: redfox's bgt questions?

2018-11-07 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: redfox's bgt questions? Pausing really depends on how your game is set up. The simplest way would be to make a pause function with a while loop that lasts until the player unpauses.The way I'd rather do it is with a variable that tracks what part of the system the program is in—what

Re: Controller Support?

2018-11-14 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: Controller Support? It's like bgt, but with fewer symbols and more indentation. Also softly typed (it doesn't care if a variable is an int or a string until you actually do operations on it).I'd try BGT with the Xbox controller, just to see if it works. BGT's big weakness is that it

Re: Does instantiantion of soundpool class make real sense for you?

2018-12-29 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: Does instantiantion of soundpool class make real sense for you? Depends on lots of things, but in short: yes. You can have different pan_step, volume_step, max_distance, etc with each pool.Does this make sense with a first person game, or the all-too-common low-scenery side-scroller?

Re: Does instantiantion of soundpool class make real sense for you?

2018-12-29 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: Does instantiantion of soundpool class make real sense for you? Depends on lots of things, but in short: yes. You can have different pan_step, volume_step, max_distance, etc with each pool.Does this make sense with a first person game, or the all-too-common low-scenery side-scroller?

Re: skipping numbers in bgt's random generator

2019-01-19 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: skipping numbers in bgt's random generator You'd probably need a while loop. This is the situation for which do-while would be good, but for some reason everyone's trying to get rid of do-while these days.So you'd first do the random number as usual, then on the next line, start a

Re: skipping numbers in bgt's random generator

2019-01-19 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: skipping numbers in bgt's random generator Most people seem to agree. They're more useful when the script blocks for user input, which really shouldn't be done outside of text-based games. They also make more sense in older versions of C, when you'd declare all the variables at the

Re: a good menu for bgt?

2019-01-20 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: a good menu for bgt? IDK if it's in any of the online repositories, but I use the menu class I wrote for Java, then ported to BGT. The filename is JMenu.bgt. It is, however, event-driven, rather than self-executing like dynamic_menu.As for music, how cumbersome it'd be depends on what

Re: can you make audiogames with javaskript?

2018-12-15 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: can you make audiogames with javaskript? Yes.It's become an increasingly complex pain in the neck with time, but yes.Cyclepath is _javascript_, IIRC. URL: http://forum.audiogames.net/post/398993/#p398993 -- Audiogames-reflector mailing list

Re: I hate timers!

2018-12-13 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: I hate timers! Liam has the right solution. The BGT manual makes timers sound like a general solution to all timing-related problems, but it really should be only a part of the solution. There's no telling what a computer will do to throw off timing (especially when multiplayer is

Re: attaching multiple constants to 1 string

2018-11-28 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: attaching multiple constants to 1 string If you want the example you gave, to shorten if (cl == "house1" or cl == "house2") etc, you might tryif (string_left(cl, 5) == "house" and string_to_number(string_trim_left(cl, 5)) <= 5)IDR if python slices work with strings, but if so, it'd be

Re: attaching multiple constants to 1 string

2018-11-28 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: attaching multiple constants to 1 string If you want the example you gave, to shorten if (cl == "house1" or cl == "house2") etc, you might tryif (string_left(cl, 5) == "house" and string_to_number(string_trim_left(cl, 5)) <= 5)IDR if python slices work with strings, but if so, it'd be

Re: java and audiogames?

2018-12-08 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: java and audiogames? Things that convinced me to stop developing games in Java:- Redistribution. Windows seems to randomly decide to change the capitalization in filenames inside jar files, or something like that. IIRC, at least 1/3 of people couldn't get my java games to launch, and

Re: html, combo boxes and landmarks?

2018-12-08 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: html, combo boxes and landmarks? IIRC, combo boxes are , and each choice is ? It's been a while, but I think that's how it works. Not sure about landmarks.Something like I should check before giving incorrect answers Ah, yeah, except the value field is just for handling the input. So

Re: attaching multiple constants to 1 string

2018-11-29 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: attaching multiple constants to 1 string @13: It sounds like you haven't read about escape sequences. \n (new line), \r (carriage return, aka newline for windows because windows is weird like that), \" (a quote in a string literal), \', \\, \t (tab), etc.I don't think I understand what

Re: redfox's bgt questions?

2018-11-23 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: redfox's bgt questions? Not quite. As you have it now, it will turn it off again the next time your key-checking runs, which is probably like 5-20ms later. What you want is more like:if(key_pressed(KEY_GRAVE)) { if(wping<=0; { speak("wping on!"); p.play_2d("wpingon.ogg",me.x,me.y,

Re: redfox's bgt questions?

2018-11-23 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: redfox's bgt questions? Not quite. As you have it now, it will turn it off again the next time your key-checking runs, which is probably like 5-20ms later. What you want is more like:if(key_pressed(KEY_GRAVE)) { if(wping<=0; { speak("wping on!"); p.play_2d("wpingon.ogg",me.x,me.y,

Re: redfox's bgt questions?

2018-11-23 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: redfox's bgt questions? To abstract it a bit, what you have now is like:if (a and b) c;if (a and d) e;What you want instead is:if (a) {  if (b) c;  else if (d) e;}Since both of your ifs start with the same condition, you can just make one if for that, then do the rest inside. The else

Re: redfox's bgt questions?

2018-11-23 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: redfox's bgt questions? Non-terminated string literals are a pain to find, because it means a mismatched quote somewhere. Without a tool to find a line with an odd number of quotes, you'd just have to ctrl + f " and check all of them manually. If you can narrow down where it might be

Re: redfox's bgt questions?

2018-11-22 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: redfox's bgt questions? 6: Key_pressed only works once per press. What you should do is have one if for the key press, then decide what to do with the ping inside that. Also, this is where you'd want to use else, since if you only move the key_pressed, you'll always get it turning on

Re: 3d audio in bgt using camlorn audio!

2018-11-22 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: 3d audio in bgt using camlorn audio! Yeah, I was surprised when I saw this topic without a dot on it.I don't have access to my computer with the files ATM, but if I have it in Dropbox or somesuch, I'll add the link to this post.Edit: Not sure if this is it, or if this is just the

Re: 3d audio in bgt using camlorn audio!

2018-11-22 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: 3d audio in bgt using camlorn audio! Yeah, I was surprised when I saw this topic without a dot on it.I don't have access to my computer with the files ATM, but if I have it in Dropbox or somesuch, I'll add the link to this post. URL: http://forum.audiogames.net/post/394573/#p394573

Re: 3d audio in bgt using camlorn audio!

2018-11-22 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: 3d audio in bgt using camlorn audio! Yeah, I was surprised when I saw this topic without a dot on it.I don't have access to my computer with the files ATM, but if I have it in Dropbox or somesuch, I'll add the link to this post.Edit: Not sure if this is it, or if this is just the

Re: attaching multiple constants to 1 string

2018-11-28 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: attaching multiple constants to 1 string Someone could probably hack together functions for working with regular expressions, if they haven't already. There'd need to be equivalents for equals, contains, replace, and split, and that would probably cover it. URL:

Re: attaching multiple constants to 1 string

2018-11-28 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: attaching multiple constants to 1 string Still not seeing the problem? Fundamentally, it's a set of rules for parsing strings. Implementing those rules might not be as easy as fizzbuzz, but I'm not sure what would make it so much harder as to require DLLs or built-in support. We're

Re: attaching multiple constants to 1 string

2018-11-28 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: attaching multiple constants to 1 string ... Why? Why can't I just look up the most common rules and write an implementation like it's that expr assignment from CS102? I mean, aside from the fact that I'm not sure if I finished that assignment or not...? URL:

Re: compiling bgt files into EXE's?

2018-11-17 Thread AudioGames . net ForumDevelopers room : CAE_Jones via Audiogames-reflector
Re: compiling bgt files into EXE's? Iirc it's something like bgt -c filename.bgt, but I'm not completely sure. On top of that, if bgt isn't in your environment path (it probably isn't), you'll either have to enter the full path to bgt, or the full path to your script. And knowing windows,

<    1   2   3   4   5   6   7   8   >