Re: Can any one please help me with this bullet class, python?

2020-08-19 Thread AudioGames . net Forum — Developers room : ashleygrobler04 via Audiogames-reflector
Re: Can any one please help me with this bullet class, python? Ok, i got it working. thanx all for the help. URL: https://forum.audiogames.net/post/562681/#p562681 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi

Re: Can any one please help me with this bullet class, python?

2020-08-07 Thread AudioGames . net Forum — Developers room : redfox via Audiogames-reflector
Re: Can any one please help me with this bullet class, python? @17.This is fair. However, i've found that my own scripting is more recognizable to me if I do all of the formatting myself. May just be a preference, though. URL: https://forum.audiogames.net/post/559327/#p559327

Re: Can any one please help me with this bullet class, python?

2020-08-06 Thread AudioGames . net Forum — Developers room : kianoosh via Audiogames-reflector
Re: Can any one please help me with this bullet class, python? ashley, You need to check the absolute value of bx if you're going to go with your own way of handling bullets. Why? Because if the player is facing left, the x value, as already specified, decreases. Your bullets

Re: Can any one please help me with this bullet class, python?

2020-08-05 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: Can any one please help me with this bullet class, python? Actually, with respect to formatting:pip install black black myfile.pyDone.  Will produce something nicely readable.  I don't remember how to run it on entire projects offhand, but you don't even configure it.  Just install

Re: Can any one please help me with this bullet class, python?

2020-08-05 Thread AudioGames . net Forum — Developers room : redfox via Audiogames-reflector
Re: Can any one please help me with this bullet class, python? I'd recommend Pep8 except for the fact that you might not understand a lot of it's terminology.But yeah, a bullet, by design, is usually something that moves on a predetermined path, and constantly checks if it is inside

Re: Can any one please help me with this bullet class, python?

2020-08-05 Thread AudioGames . net Forum — Developers room : chrisnorman7 via Audiogames-reflector
Re: Can any one please help me with this bullet class, python? Hey @13If you get into the habit of using Flake8, it'll point out problems like not enough blank lines for you. It also does other useful things like checking variables that you use actually exist.That's what I used, paired

Re: Can any one please help me with this bullet class, python?

2020-08-05 Thread AudioGames . net Forum — Developers room : bhanuponguru via Audiogames-reflector
Re: Can any one please help me with this bullet class, python? #13:no. @12 din't mean to put a blank line in each line of code. @12 is saying to put a blank line between 2 classes or 2functions or between one class and function etc. URL: https://forum.audiogames.net/post/558493/#p558493

Re: Can any one please help me with this bullet class, python?

2020-08-04 Thread AudioGames . net Forum — Developers room : ashleygrobler04 via Audiogames-reflector
Re: Can any one please help me with this bullet class, python? Ok, in the future, i will put a blank line between the lines of code. URL: https://forum.audiogames.net/post/558248/#p558248 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https

Re: Can any one please help me with this bullet class, python?

2020-08-04 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: Can any one please help me with this bullet class, python? @9For those of us who are used to reading code, blank lines also matter.  It's like splitting your code into paragraphs, "hey this new thing is starting now", and with a screen reader you can find where things

Re: Can any one please help me with this bullet class, python?

2020-08-04 Thread AudioGames . net Forum — Developers room : chrisnorman7 via Audiogames-reflector
Re: Can any one please help me with this bullet class, python? @10It's anything you want it to be. Maybe you're building a splinter missile that turns from 1 bullet into 10 when it moves past 2 tiles, maybe it's a subspace warp-enabled battle-bastard torpedo, and it should vanish as soon

Re: Can any one please help me with this bullet class, python?

2020-08-04 Thread AudioGames . net Forum — Developers room : titan_of_war via Audiogames-reflector
Re: Can any one please help me with this bullet class, python? is a bullet in audiogames basicly just a thing that moves that takes helf from a player that you just add a hit sound too. URL: https://forum.audiogames.net/post/558158/#p558158 -- Audiogames-reflector mailing list

Re: Can any one please help me with this bullet class, python?

2020-08-04 Thread AudioGames . net Forum — Developers room : ashleygrobler04 via Audiogames-reflector
Re: Can any one please help me with this bullet class, python? Thanx all for the help. and yeah, it was a loop outside the class. look at the indentation... but camlawn thanx for the help, will try it. URL: https://forum.audiogames.net/post/558122/#p558122 -- Audiogames-reflector

Re: Can any one please help me with this bullet class, python?

2020-08-03 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: Can any one please help me with this bullet class, python? @7I don't think it's called anything, or if it is I haven't seen anyone call it anything in something like 6 or 7 years of Python.  people just call it self, or the current instance, or the object, or whatever.  Maybe there's

Re: Can any one please help me with this bullet class, python?

2020-08-03 Thread AudioGames . net Forum — Developers room : redfox via Audiogames-reflector
Re: Can any one please help me with this bullet class, python? Remember, this isn't BGT, where every god forsaken variable is accessible from anywhere. You don't have to worry about conflictions with variable names with something outside of the class and inside, provided you have

Re: Can any one please help me with this bullet class, python?

2020-08-03 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: Can any one please help me with this bullet class, python? @4The bullet loop isn't in the class, they're just not putting blank lines between things so you have to go out of your way to notice.@ashleygrobler04In order to deal with facing, it is helpful to represent right as 1, and left

Re: Can any one please help me with this bullet class, python?

2020-08-03 Thread AudioGames . net Forum — Developers room : ashleygrobler04 via Audiogames-reflector
Re: Can any one please help me with this bullet class, python? The reason why i am using a for loop in the class, is because i have a bullet loop running in the game. that's why, but i guess i can change it... URL: https://forum.audiogames.net/post/557874/#p557874 -- Audiogames

Re: Can any one please help me with this bullet class, python?

2020-08-02 Thread AudioGames . net Forum — Developers room : ogomez92 via Audiogames-reflector
Re: Can any one please help me with this bullet class, python? Why are you doing for i in bullets: inside the bullet class?The reason for having class instances is exactly so you don't have to run loops that spawn multiple things from inside the same class, your bullet should fire alright

Re: Can any one please help me with this bullet class, python?

2020-08-02 Thread AudioGames . net Forum — Developers room : ogomez92 via Audiogames-reflector
Re: Can any one please help me with this bullet class, python? Why are you doing for i in bullets: inside the bullet class?The reason for having class instances is exactly so you don't have to run loops that spawn multiple things from inside the same class, your bullet should fire alright

Re: Can any one please help me with this bullet class, python?

2020-08-02 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: Can any one please help me with this bullet class, python? The problem of the disappearing bullets could be how your handling the maxx variable:if i.bx>i.maxx: bullets.remove(i)If your moving right, it makes sense that the bullet should reach X distance t

Re: Can any one please help me with this bullet class, python?

2020-08-02 Thread AudioGames . net Forum — Developers room : chrisnorman7 via Audiogames-reflector
Re: Can any one please help me with this bullet class, python? A couple of possibilities:Firstly, you should probably use constants or an enum for directions, so you can't mistype, and therefore skip the if statements concerning directions. If you're not going to do that, at least do:if

Can any one please help me with this bullet class, python?

2020-06-29 Thread AudioGames . net Forum — Developers room : ashleygrobler04 via Audiogames-reflector
Can any one please help me with this bullet class, python? Hi all. so i've been wanting to try out a side scroller type of game where there enemies and you have to kill them. i don't want to release this, i am just experimenting with this kind of things. so i am running into a little