Re: problem in the code on bgt

You haven't given us enough information to be able to help you. You've indicated that there's a problem, but not what you're trying to accomplish.
For starters, play_wait is probably not what you want. It plays the audio and stops the program dead until the audio finishes playing. Your key_pressed check won't work for this reason.
Also, you really don't want to be calling main from within your game loop. The program has to keep a running log of all the functions that have been called, so when the latest function returns the one that called it can resume from the point at which it left off. This is called a call stack, and it has limited capacity (all though quite large).
If your loop calls main frequently for no apparent reason you may experience a runtime error after a while.
Otherwise, you should provide more information about what it is you're trying to do and the specific problems you're having.

_______________________________________________
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
  • ... AudioGames . net Forum — Developers room : jonikster via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Trajectory via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Hayden via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : keyIsFull via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Hayden via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : audiogames . net fan via Audiogames-reflector

Reply via email to