Re: using multiple of the same class in bgt

2019-06-28 Thread AudioGames . net Forum — Developers room : kianoosh via Audiogames-reflector
Re: using multiple of the same class in bgt very welcome URL: https://forum.audiogames.net/post/444676/#p444676 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: using multiple of the same class in bgt

2019-06-28 Thread AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector
Re: using multiple of the same class in bgt I have gotten the array to work, and I can create an infinite amount of players and it will cycle back to the first player correctly. Thank you so so much for helping me with this, I think I'm good on using classes now. URL: https

Re: using multiple of the same class in bgt

2019-06-28 Thread AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector
Re: using multiple of the same class in bgt I was going to try an array as a backup but wasn't sure ho that would work either. I did try, but no success. Also the player@players[0] line is currently in the class script not the main script, so I am not sure if it counts as global URL

Re: using multiple of the same class in bgt

2019-06-28 Thread AudioGames . net Forum — Developers room : kianoosh via Audiogames-reflector
Re: using multiple of the same class in bgt Ok. What you're doing isn't right. I would declare an array of type player before the for loop like this:player@[] players;now in the for loop, I do this:players.insert_last(player());This should create 5 players in the players array. Then you

Re: using multiple of the same class in bgt

2019-06-27 Thread AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector
Re: using multiple of the same class in bgt I'm having a very very difficult time with this. I can make 5 players, but bgt doesn't actually know that there are 5 players. For example, a for loop that makes players p1 through p5. Then if I press space it speaks p5's money. Only problem

Re: using multiple of the same class in bgt

2019-06-27 Thread AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector
Re: using multiple of the same class in bgt I'm having a very very difficult time with this. I can make 5 players, but bgt doesn't actually know that there are 5 players. For example, a for loop that makes players p1 through p5. Then if I press space it speaks p5's money. Only problem

Re: using multiple of the same class in bgt

2019-06-24 Thread AudioGames . net Forum — Developers room : kianoosh via Audiogames-reflector
Re: using multiple of the same class in bgt Using the term better for bgt dictionaries isn't right at all time. BGT dictionaries can be a performance smasher if you go to far with them and set a lot of keys for systems like maps. In other languages however, It is probably right because

Re: using multiple of the same class in bgt

2019-06-24 Thread AudioGames . net Forum — Developers room : roelvdwal via Audiogames-reflector
Re: using multiple of the same class in bgt Remember, classes are just objects. So, if you want to identify them by some id, you can use arrays or maybe even better dictionaries. URL: https://forum.audiogames.net/post/443730/#p443730 -- Audiogames-reflector mailing list Audiogames

Re: using multiple of the same class in bgt

2019-06-24 Thread AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector
Re: using multiple of the same class in bgt lol ok thank you. URL: https://forum.audiogames.net/post/443704/#p443704 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: using multiple of the same class in bgt

2019-06-24 Thread AudioGames . net Forum — Developers room : kianoosh via Audiogames-reflector
Re: using multiple of the same class in bgt Let's make it simple and fast: You code a class named player, with a property named money. Then you create two instances of that class and asign an amount of money to each of them. Now you can use player2.money; to get player2's money which

using multiple of the same class in bgt

2019-06-23 Thread AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector
using multiple of the same class in bgt I read through the bgt chapters 10 and 11. I understand the inheritance and interfaces. But here is my question. Let's say I have 2 people. So i have 2 objects with different names, amount of money, and popularity status. How would I refer to player