Re: string_contains in python?

2020-08-19 Thread AudioGames . net Forum — Developers room : ogomez92 via Audiogames-reflector


  


Re: string_contains in python?

Hi, new Array isn't usedUse let array = [] to either create a new array or resize and existing one.Btw @1, why not try stackoverflow or google? Just saying.First result in google search for "string contains python"https://www.afternerd.com/blog/python-string-contains/Btw, google would have given you an answer immediately, instead of you having to wait a few hours for an answer here.

URL: https://forum.audiogames.net/post/562940/#p562940




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


Re: string_contains in python?

2020-08-19 Thread AudioGames . net Forum — Developers room : ogomez92 via Audiogames-reflector


  


Re: string_contains in python?

Hi, new ARray isn't usedUse let array = [] to either create a new array or resize and existing one.Btw @1, why not try stackoverflow or google? Just saying.First result in google search for "string contains python"https://www.afternerd.com/blog/python-string-contains/

URL: https://forum.audiogames.net/post/562940/#p562940




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


Re: string_contains in python?

2020-08-19 Thread AudioGames . net Forum — Developers room : ogomez92 via Audiogames-reflector


  


Re: string_contains in python?

Hi, new ARray isn't usedUse let array = [] to either create a new array or resize and existing one.Btw @1, why not try stackoverflow or google? Just saying.

URL: https://forum.audiogames.net/post/562940/#p562940




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


Re: string_contains in python?

2020-08-19 Thread AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector


  


Re: string_contains in python?

While we're asking technically-googlable-but-hard-to-clarify questions... what's up with _javascript_ arrays / dicts? I've found that trying to replace "new Array" in my games made when literally all the tutorials and examples said to use "new Array" with either seems to fail. I mostly just want those to work again with minimum modification.I say this here because Googling it gives confusing and useless information (mostly just "new Array is bad, because XYZ" rants). ... About like anything JS related post HTML5, really.I can easily imagine the way that Python "in" works being sufficiently different from what one understands that some clarification might be necessary, though I have not tried Googling it to check. And what one Googles might vary if string_contains is all that one knows.(Random observation: BGT / Angelscript has the "xor" keyword, and Python does not, unless it was added since I last checked. That seems weird, somehow. I've found xor useful in 2d games in particular, especially for things like "is a facing b?" (if (a.faceright xor b.x(But no for real why is it so hard to figure out how to replace "new Array"? You'd think however basic arrays or dicts work these days should cover it. But I have that mystery game (where arrays make more sense for NPC information, and dicts for reviewing information), and Jeqo Legends (where things get weird because there are numeric index arrays for in-game team-members, but string-indexing for character information, and guh why did it take me longer to learn OOP than to start releasing games? And why can't I work that fast anymore?)

URL: https://forum.audiogames.net/post/562903/#p562903




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


Re: string_contains in python?

2020-08-19 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector


  


Re: string_contains in python?

Yes, it does hurt to ask.  I at least go out of my way to answer such questions under the assumption that you don't know and are trying to learn.  If you do know, that wastes my time, especially since you could have just tried it if you weren't sure.

URL: https://forum.audiogames.net/post/562732/#p562732




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


Re: string_contains in python?

2020-08-19 Thread AudioGames . net Forum — Developers room : ashleygrobler04 via Audiogames-reflector


  


Re: string_contains in python?

because i was not sure about it, and i'm sure it doesn't hurt to ask...

URL: https://forum.audiogames.net/post/562718/#p562718




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


Re: string_contains in python?

2020-08-19 Thread AudioGames . net Forum — Developers room : chrisnorman7 via Audiogames-reflector


  


Re: string_contains in python?

@3Just wondering, if you already googled this and got an answer that worked for you, why did you post?

URL: https://forum.audiogames.net/post/562699/#p562699




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


Re: string_contains in python?

2020-08-18 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector


  


Re: string_contains in python?

I mean, you could use something like...foo = "Hi"
bar = "\"Hi there\", said the dog."
if bar.find(foo) >= 0:
print("Yea! You found a string within another string!")
else:
print("Urm, this should have worked...")The in operator is generally quicker to type, though.

URL: https://forum.audiogames.net/post/562559/#p562559




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


Re: string_contains in python?

2020-08-18 Thread AudioGames . net Forum — Developers room : ashleygrobler04 via Audiogames-reflector


  


Re: string_contains in python?

so i should use in? Ok, that's more or less what i saw on google, but i was not to sure. thanx a lot

URL: https://forum.audiogames.net/post/562512/#p562512




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


Re: string_contains in python?

2020-08-18 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector


  


Re: string_contains in python?

Do:"foo" in "mystring"Either foo or mystring can be variables.

URL: https://forum.audiogames.net/post/562510/#p562510




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


string_contains in python?

2020-08-18 Thread AudioGames . net Forum — Developers room : ashleygrobler04 via Audiogames-reflector


  


string_contains in python?

Hi all, in BGT, there is a function called string_contains(text). so i wanted to know if there is a similar function available in python 3?

URL: https://forum.audiogames.net/post/562507/#p562507




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