Re: BGT game code

2019-09-17 Thread AudioGames . net Forum — Developers room : MasterOfDeath via Audiogames-reflector


  


Re: BGT game code

7, the language is hungarian.

URL: https://forum.audiogames.net/post/462475/#p462475




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: BGT game code

2019-09-17 Thread AudioGames . net Forum — Developers room : simter via Audiogames-reflector


  


Re: BGT game code

@4, it's possible. It's not recomended in some chases cause you are really just restarting the program. You can of course make some variables to tell the funktion what it shouldn't do again but it makes things just more complicated then they need to be.

URL: https://forum.audiogames.net/post/462461/#p462461




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: BGT game code

2019-09-17 Thread AudioGames . net Forum — Developers room : lukas via Audiogames-reflector


  


Re: BGT game code

Rastislav is right, you can never check for a key press without a loop. It doesn't work reliably. Besides, why do you check for 3 different key presses but always say the same thing, no matter which key was pressed? Couldn't that be simplified somehow? I think you may be trying to add some text to a number or something. But it's difficult to guess the purpose when it's a different language than English. What language is it, by the way, if I may ask? I'm curious. :-)Lukas

URL: https://forum.audiogames.net/post/462448/#p462448




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: BGT game code

2019-09-07 Thread AudioGames . net Forum — Developers room : Rastislav Kiss via Audiogames-reflector


  


Re: BGT game code

Few things here, although you didn't specified which key:1. Line 37, I guess you meaned jatek=false?2. You're missing a wait command in your loops. When you want to make an infinite loop for example to catch keys, you need to include call for wait on its end, because otherwise it'll drain cpu and that isn't healthy for hardware. 5 ms should work just fine, goal is just to prevent running full speed.3. The valaszt function, although I didn't get what it should do checks for pressed keys, however only one time. That means, you need to hit exactly the moment where if (key_pressed(KEY_some)) is executed in the program, what is... impossible.You can higher you chance by pressing the key more times, that's I guess what you meaned by the need to press keys repeatedly.It's hard to tell the best solution, when I don't know, what is the program supposed to do, however one thing applies independently of purpose - when you're checking for a key press, it always should be looped.Best regardsRastislav

URL: https://forum.audiogames.net/post/460270/#p460270




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: BGT game code

2019-09-07 Thread AudioGames . net Forum — Developers room : tdani via Audiogames-reflector


  


Re: BGT game code

The fact that I did not use the name voice instead of v is because the second one is shorter.I didn't write what my problem was. I have to press that key many times when the money falls and for some reason do not properly check whether it was correct or not.

URL: https://forum.audiogames.net/post/460262/#p460262




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: BGT game code

2019-09-07 Thread AudioGames . net Forum — Developers room : targor via Audiogames-reflector


  


Re: BGT game code

You're calling the main function in your game function again. I haven't worked with BGT a long time, but I would say that isn't allowed because then you're practically starting your program a second time. But correct me if I'm wrong. What you want to do is: Replace the line "main();" in your game function with "return;". Then you're not entering main again, but continue where you left it earlier.

URL: https://forum.audiogames.net/post/460257/#p460257




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: BGT game code

2019-09-07 Thread AudioGames . net Forum — Developers room : targor via Audiogames-reflector


  


Re: BGT game code

You're calling the main function in your game function again. I haven't worked with BGT a long time, but I would say that isn't allowed because then you're practically starting your program a second time. But correct me if I'm wrong.

URL: https://forum.audiogames.net/post/460257/#p460257




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: BGT game code

2019-09-07 Thread AudioGames . net Forum — Developers room : redfox via Audiogames-reflector


  


Re: BGT game code

@2 that does not change anything.

URL: https://forum.audiogames.net/post/460239/#p460239




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: BGT game code

2019-09-07 Thread AudioGames . net Forum — Developers room : adel . spence via Audiogames-reflector


  


Re: BGT game code

what you ment was.tts_voice voice;nottts_voice v;

URL: https://forum.audiogames.net/post/460236/#p460236




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector