Re: redfox's bgt questions?

2018-11-23 Thread AudioGames . net ForumDevelopers room : Merin via Audiogames-reflector


  


Re: redfox's bgt questions?

if(key_pressed(KEY_GRAVE){if(wping = 0){speak("wping on!");p.play_2d("wpingon.ogg",me.x,me.y, me.x,me.y,false");wping==1;}else{speak("wping off!");p.play_2d("wpingoff.ogg",me.x,me.y, me.x,me.y,false);wping==0;}}

URL: http://forum.audiogames.net/post/394725/#p394725




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


Re: Bgt help topic reincarnation.

2016-08-01 Thread AudioGames . net ForumDevelopers room : Merin via Audiogames-reflector


  


Re: Bgt help topic reincarnation.

I'm not the best coder by anymeans, so, someone willing to provide an actual answer may think I suck and show me a million different ways to do it, but, you could, in theory do this.string text;void main(){text = magic_wand();alert("Sarrah has the " + text + ".");}string magic_wand(){string magic = "magic";string wand = "wand";return (magic + " " + wand);}Alternatively, to make it more fun,void main(){string item = magic_wand("Giant", "Banana");alert("Sarah has the " + item + ".");}string magic_wand(string a = "magic", b = "wand"){return (a + " " + b + "");}I haven't tested this, and I may be way wrong due to my inexperience, but hey.  I tried .

URL: http://forum.audiogames.net/viewtopic.php?pid=271995#p271995





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