Re: Ok bgt, what the hell?

2019-10-10 Thread AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector


  


Re: Ok bgt, what the hell?

"Invalid operation on int" means one of two things: either it thinks something is an int when you treat it like something else (see the "what is p?" issue), or that the variable was not correctly defined (or the name was mistyped), and has been referenced more than once.If it's that you have two "p"s, and you want the global one instead of the local one, put two colons in front of it. ::p.play, for example.

URL: https://forum.audiogames.net/post/467305/#p467305




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


Re: Ok bgt, what the hell?

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


  


Re: Ok bgt, what the hell?

0Sorry, forgot to give information, it compilation errors and says something about invalid int or similar.

URL: https://forum.audiogames.net/post/467158/#p467158




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


Re: Ok bgt, what the hell?

2019-10-09 Thread AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector


  


Re: Ok bgt, what the hell?

Possibilities that cannot be determined from the given code:- Distance?- Are you sure the filename is correct? If loop is -1 after this line, maybe use file_exists on the filename to be sure it's what you meant it to be?- It isn't clear what "me" refers to. This shouldn't be the problem (if me is null, you'd get an NPE), but if nothing else works, I'd doublecheck that.- Sound_pool parameters?It isn't clear from your post how exactly it fails. Does everything else work, but you just don't hear the sound? In that case, I'd add something after trying to play it to report what happened: the value of loop, file_exists, etc. There's something in the BGT manual about getting information on the last error, which I remember using when I had a similar problem years ago, but I don't remember how exactly it works.Just with what you've given us, I'd try reporting on all the relevant variables (loop, cx, cy, me.x, me.y, filename, file_exists, anything else you can think of), and looking for anything strange. Probably include the filename, just to be sure (sometimes I'll check for typos and still miss something).

URL: https://forum.audiogames.net/post/467029/#p467029




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


Re: Ok bgt, what the hell?

2019-10-08 Thread AudioGames . net Forum — Developers room : keyIsFull via Audiogames-reflector


  


Re: Ok bgt, what the hell?

no he's using a sound_pool, presumably that object is p. You probably shouldn't have the loop play in the constructor though, that just seems like a bad idea, make it play later.

URL: https://forum.audiogames.net/post/466961/#p466961




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


Re: Ok bgt, what the hell?

2019-10-08 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector


  


Re: Ok bgt, what the hell?

I am not too sure, except you have an integer named P.  Try changing it to something else and seeing if your code works, I am assuming it doesn’t because you’re trying to make an integer play a sound.

URL: https://forum.audiogames.net/post/466958/#p466958




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