Re: Bgt question

2019-07-05 Thread AudioGames . net Forum — Developers room : cmerry via Audiogames-reflector
Re: Bgt question Yeah, it should be recursive. Your function might just work, I'll just need to figure out a way I can make it work properly how I want to. Thanks anyways. URL: https://forum.audiogames.net/post/446832/#p446832 -- Audiogames-reflector mailing list Audiogames-reflector

Re: Bgt question

2019-07-05 Thread AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector
Re: Bgt question Do you want it to be recursive, and can you proof it against people copying a directory into itself and causing it to replicate until you run out of disc space?You can probably get away with directory_create, then use a for loop to copy the files. Unless file_copy takes

Re: Bgt question

2019-07-05 Thread AudioGames . net Forum — Developers room : Liam via Audiogames-reflector
Re: Bgt question BGT has functions for find files and find directories, but it doesn't have a way to directly copy a directory. You can copy files though.This is actually super easy to accomplish in Python with a couple lines of code, but I'm not sure the less complex way of handling

Bgt question

2019-07-05 Thread AudioGames . net Forum — Developers room : cmerry via Audiogames-reflector
Bgt question Hi all,I was wondering if anyone knew of a way of copying a directory to another one in bgt, including all of it's subfolders / files?The only ways I've thought to do this so far haven't really worked well at all. The closest thing I've been able to do so far was write

Re: BGT question

2019-03-04 Thread AudioGames . net Forum — Developers room : adel . spence via Audiogames-reflector
Re: BGT question woops, cant post html in the forom. URL: https://forum.audiogames.net/post/416347/#p416347 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: BGT question

2019-03-04 Thread AudioGames . net Forum — Developers room : adel . spence via Audiogames-reflector
Re: BGT question sorry to be the reaper here, but I hav some questions to ask.1 can someone give me a item class and a invantorry class?2can someone tell me how to make long wange weapons?3how do you implement 3d sound with bgt?4can someone help with makeing a steircace class? URL: https

Re: BGT question

2019-03-04 Thread AudioGames . net Forum — Developers room : adel . spence via Audiogames-reflector
Re: BGT question sorry to be the reaper here, but I hav some questions to ask.1 can someone give me a item class and a invantorry class?2can someone tell me how to make long wange weapons?3how do you implement 3d sound with bgt?4can someone help with makeing a steircace class? URL: https

Re: BGT question

2019-02-24 Thread AudioGames . net Forum — Developers room : mohamed via Audiogames-reflector
Re: BGT question @3  I want to create a weapon without any special conditions URL: https://forum.audiogames.net/post/414384/#p414384 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames

Re: BGT question

2019-02-24 Thread AudioGames . net Forum — Developers room : adel . spence via Audiogames-reflector
Re: BGT question its from zombie arena URL: https://forum.audiogames.net/post/414375/#p414375 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: BGT question

2019-02-24 Thread AudioGames . net Forum — Developers room : cmerry via Audiogames-reflector
Re: BGT question Plus, i'm 99.9 per cent sure that code is from dizafio mortle or ultrapower. I know i've seen that somewhere before. URL: https://forum.audiogames.net/post/414347/#p414347 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https

Re: BGT question

2019-02-24 Thread AudioGames . net Forum — Developers room : Lucas1853 via Audiogames-reflector
Re: BGT question @2, this is pretty much a terrible way to make weapons. With those kinds of variables, you might as well put them in a class for more flexability, cleaner code, and more maintainable systems. URL: https://forum.audiogames.net/post/414338/#p414338 -- Audiogames

Re: BGT question

2019-02-24 Thread AudioGames . net Forum — Developers room : skluttrell via Audiogames-reflector
Re: BGT question That question is way to broad. There are any number of ways to code in a weapon and a lot of it depends on how you plan to use it in any given game.Some people might choose to create an entire weapon object. Some programs may not need that approach.Are there other types

Re: BGT question

2019-02-24 Thread AudioGames . net Forum — Developers room : mahdi-abedi via Audiogames-reflector
Re: BGT question hieg like thisint weapon0damage=10;int weapon0range=4;int weapon0time=120;int weapon0speed=30;bool weapon0scatter=false;timer weapontimer;if (key_pressed(KEY_GRAVE)){speak("sword");weapon=0;p.play_stationary("sworddraw.ogg",false);weapondamage=weapo

BGT question

2019-02-24 Thread AudioGames . net Forum — Developers room : mohamed via Audiogames-reflector
BGT question hello how I can   create a weapon  using BGT. for example a sword thanks URL: https://forum.audiogames.net/post/414304/#p414304 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo

Re: BGT question

2017-10-24 Thread AudioGames . net Forum — Developers room : border1 via Audiogames-reflector
Re: BGT question @CAE_Jones:ding.wav and chord.wav are working fine. But other *.wav files aren't working. Is it better to use *.ogg files instead? URL: http://forum.audiogames.net/viewtopic.php?pid=335074#p335074 ___ Audiogames-reflector

Re: BGT question

2017-10-24 Thread AudioGames . net Forum — Developers 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 Forum — Developers room : border1 via Audiogames-reflector
Re: BGT question @CAE_Jones:When I try playing wav files in bgt, bgt plays no sound at all. When I include a *.ogg file, it plays the sound. URL: http://forum.audiogames.net/viewtopic.php?pid=335024#p335024 ___ Audiogames-reflector mailing

Re: BGT question

2017-10-24 Thread AudioGames . net Forum — Developers 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: http

Re: BGT question

2017-10-24 Thread AudioGames . net Forum — Developers room : border1 via Audiogames-reflector
Re: BGT question @CAE_Jones:I tried playing *.ogg files with bgt and it worked. Can bgt only play *.ogg files?I tried including nvda and it gave me an compilation error:File: C:\Program Files (x86)\BGT\include\nvdaControllerClient32.dllOn line: 1 (3)Line: MZÿÿ¸@غ´    Í!¸LÍ

Re: BGT question

2017-10-24 Thread AudioGames . net Forum — Developers room : border1 via Audiogames-reflector
Re: BGT question @CAE_Jones:Thank you for the code.*.ogg files aren't working for me. Only *.wav files work.How is it possible to implement nvda in bgt?When I type:#include "license.txt"#include "nvdaControllerClient32.dll"bgt sends an error. How can I

Re: BGT question

2017-10-24 Thread AudioGames . net Forum — Developers 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[] shown(size

Re: BGT question

2017-10-24 Thread AudioGames . net Forum — Developers 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";   

Re: BGT question

2017-10-24 Thread AudioGames . net Forum — Developers 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 Forum — Developers room : border1 via Audiogames-reflector
Re: BGT question @CAE_Jones:Thank you for the code.*.ogg files aren't working for me. Only *.wav files work.How is it possible to implement nvda in bgt?When I type:#include "license.txt"#include "nvdaControllerClient32.dll"bgt sends an error. How can I

Re: BGT question

2017-10-24 Thread AudioGames . net Forum — Developers 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[] shown(size

Re: BGT question

2017-10-23 Thread AudioGames . net Forum — Developers room : border1 via Audiogames-reflector
Re: BGT question @CAE_Jones:Thank you. Can bgt only play *.wav files or can it also play *.ogg files?I wanted bgt to randomize all three questions, so when I answer one question, he program proceeds with the second question and so on, until all three questions are answered correctly. URL

Re: BGT question

2017-10-23 Thread AudioGames . net Forum — Developers 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 Audiogames

Re: BGT question

2017-10-23 Thread AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector
Re: BGT question I'm going to be a bit rude and say go read the manual -- specifically the reference manual. It's in there somewhere. Yeah, it's rude, but this answer is probably exactly the answer you'd get on other dev forums especially since the answer is already in the manual. URL

BGT question

2017-10-23 Thread AudioGames . net Forum — Developers room : kingzombie via Audiogames-reflector
BGT question HelloIs there a way to check if a sound is playing in BGT? URL: http://forum.audiogames.net/viewtopic.php?pid=334884#p334884 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin

BGT question

2017-10-23 Thread AudioGames . net Forum — Developers room : kingzombie via Audiogames-reflector
BGT question HelloIs there a way to check if a sound is playing BGT? URL: http://forum.audiogames.net/viewtopic.php?pid=334884#p334884 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin

Re: BGT question

2017-10-23 Thread AudioGames . net Forum — Developers 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

Re: BGT question

2017-10-23 Thread AudioGames . net Forum — Developers 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

Re: BGT question

2017-10-23 Thread AudioGames . net Forum — Developers 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 Forum — Developers room : border1 via Audiogames-reflector
Re: BGT question @CAE_Jones:Have you tried out the program? The program randomizes nothing at all. When I put this line into my code:int index = random(1, size-1);the program only presents the first question.I wanted the program to randomize questions[0] questions[1] and questions[2]. URL

Re: BGT question

2017-10-23 Thread AudioGames . net Forum — Developers 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";   

Re: BGT question

2017-10-23 Thread AudioGames . net Forum — Developers room : border1 via Audiogames-reflector
Re: BGT question @CAE_JonesThank you. Can you explain what I have to do step by step?What is a good programming language to write vocabularies with the random function? URL: http://forum.audiogames.net/viewtopic.php?pid=334849#p334849

Re: BGT question

2017-10-23 Thread AudioGames . net Forum — Developers 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

BGT question

2017-10-22 Thread AudioGames . net Forum — Developers room : border1 via Audiogames-reflector
BGT question Hi guys!I hope you can help me with my problem.How can i randomize two questions in bgt?Here is my code:void main(){string input;input=input_box("input_box", "what is bgt?", "");if(input=="a programming language"){alert("yes!&qu

Re: BGT question

2017-10-22 Thread AudioGames . net Forum — Off-topic room : connor142 via Audiogames-reflector
Re: BGT question This is the wrong forum. URL: http://forum.audiogames.net/viewtopic.php?pid=334761#p334761 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman

BGT question

2017-10-22 Thread AudioGames . net Forum — Off-topic room : border1 via Audiogames-reflector
BGT question Hi guys!I hope you can help me with my problem.How can i randomize two questions in bgt?Here is my code:void main(){string input;input=input_box("input_box", "what is bgt?", "");if(input=="a programming language"){alert("yes!&qu

Re: bgt question

2015-01-29 Thread AudioGames . net Forum — Developers room : ogomez92 via Audiogames-reflector
Re: bgt question Yeah... I always keep forgetting to check the bgt tutorial. Thanks to that I also learned about interfaces, that is what my new game is using URL: http://forum.audiogames.net/viewtopic.php?pid=202800#p202800 ___ Audiogames

Re: bgt question

2015-01-27 Thread AudioGames . net Forum — Developers room : keyIsFull via Audiogames-reflector
Re: bgt question yep cae, I would love to be able to put variables in interfaes. Basically I am forced to make accessor and mutator methods instead. URL: http://forum.audiogames.net/viewtopic.php?pid=202643#p202643 ___ Audiogames-reflector

Re: bgt question

2015-01-27 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: bgt question Where is the inheritance in your Purebasic example? And why is Purebasic coming up, anyway?The whole point of polymorphism is not variables, it is class methods. You cannot do polymorphism without very interesting pointer tricks in languages that do not provide built

Re: bgt question

2015-01-27 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: bgt question Where is the inheritance in your Purebasic example? And why is Purebasic coming up, anyway?The whole point of polymorphism is not variables, it is class methods. You cannot do polymorphism without very interesting pointer tricks in languages that do not provide built

Re: bgt question

2015-01-27 Thread AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector
Re: bgt question Hi,PureBASIC allows you to do this too. You can do something similar, but not like int num_enemies[] enemies;. Instead, you define a structure like so:Structure enemyname.sx.ly.lz.ltype.sEndStructureThen, wherever you like, polymorph it like so:Dim enemies.enemy(0

Re: bgt question

2015-01-26 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: bgt question Also, congratulations on discovering polymorphism without being told about it. From where Im standing, thats exactly what you just did. And most programmers dont get it for a very long while even when its explained (I fell into this category, many a year ago). URL: http

Re: bgt question

2015-01-26 Thread AudioGames . net Forum — Developers room : ogomez92 via Audiogames-reflector
Re: bgt question Oh, I am relieved. I didnt think you could do that for some reason. Thats very nice URL: http://forum.audiogames.net/viewtopic.php?pid=202432#p202432 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin

Re: bgt question

2015-01-26 Thread AudioGames . net Forum — Developers room : keyIsFull via Audiogames-reflector
Re: bgt question Yeah, actually polymorphism is explained in the bgt language tutorial. It is a beautiful thing once you figure it out. I wish bgt subported abstract classes though. They seem pretty cool, because they force you to conform to a syntax. Basically so you dont miss something

Re: bgt question

2015-01-26 Thread AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector
Re: bgt question Yes. Thats exactly how it works. URL: http://forum.audiogames.net/viewtopic.php?pid=202420#p202420 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin

bgt question

2015-01-26 Thread AudioGames . net Forum — Developers room : ogomez92 via Audiogames-reflector
bgt question I have an interesting bgt question:If I have for example a class called enemyAnd I make a subclass like this: Class spaceship : enemy and another called class tank : enemy;Can I then make an array of enemies enemy[] enemies; and put both tanks and spaceships?Thanks! URL: http

Re: bgt question

2015-01-26 Thread AudioGames . net Forum — Developers room : audiogames . net fan via Audiogames-reflector
Re: bgt question Hi,I knew about this feature of bgt, but in the sort of minigames I am creating right now in it, I dont really need it for much as of right now. I can see it coming in very useful later on, though. URL: http://forum.audiogames.net/viewtopic.php?pid=202519#p202519

Re: bgt question

2015-01-26 Thread AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector
Re: bgt question Im not sure if youd necessarily need anything abstract classes provide that you cant get with interfaces, unless its variables? URL: http://forum.audiogames.net/viewtopic.php?pid=202522#p202522 ___ Audiogames-reflector

Hi, I have a very stupid math / bgt question

2015-01-20 Thread AudioGames . net Forum — Developers room : ogomez92 via Audiogames-reflector
Hi, I have a very stupid math / bgt question Hi everyone,I have a very stupid math question, possibly only related to bgt.I am looking at various game examples and I see something like:score += board[player_position].landed ? 5 : 10;What do ? and : mean?Im sure its something really simple

Re: Hi, I have a very stupid math / bgt question

2015-01-20 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: Hi, I have a very stupid math / bgt question thats actually not a stupid question, believe it or not. Many programmers dont know what that does.Its commonly called the ternary operator, or at least it is in common usage. There is probably a more official name for it, but as its

Re: Hi, I have a very stupid math / bgt question

2015-01-20 Thread AudioGames . net Forum — Developers room : keyIsFull via Audiogames-reflector
Re: Hi, I have a very stupid math / bgt question The operator is also called the conditional operator. I actually learned about this language in the concept of java and I instantly became in love with it. URL: http://forum.audiogames.net/viewtopic.php?pid=201736#p201736

Re: Hi, I have a very stupid math / bgt question

2015-01-20 Thread AudioGames . net Forum — Developers room : ogomez92 via Audiogames-reflector
Re: Hi, I have a very stupid math / bgt question thanks guys for clearing that up URL: http://forum.audiogames.net/viewtopic.php?pid=201774#p201774 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https

Re: Hi, I have a very stupid math / bgt question

2015-01-20 Thread AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector
Re: Hi, I have a very stupid math / bgt question Yep. Its not immediately obvious, but it is wonderful.Pythons version makes more sense, although its not in quite the same order, so porting between Python and C-like languages is more work with these.The Python version goes:x = A if p else