Timeline for Problem With Enemy Bullets Attacking The Player Pygame
Current License: CC BY-SA 4.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| S Jun 18, 2020 at 14:51 | history | suggested | Deepthought | CC BY-SA 4.0 | logical mistake in code |
| Jun 18, 2020 at 12:57 | review | Suggested edits | |||
| S Jun 18, 2020 at 14:51 | |||||
| Jun 16, 2020 at 18:19 | comment | added | Habib Ismail | the bullets dont seem to appear on the screen even though I draw it am I doing something wrong? in my main loop heres is my full code if you want to check it out script I changed the name of the bullet class to Boolss and I didnt forget about the appending the Boolss as well | |
| Jun 16, 2020 at 15:21 | comment | added | sirreldar | See edit to answer | |
| Jun 16, 2020 at 15:21 | history | edited | sirreldar | CC BY-SA 4.0 | added 1885 characters in body |
| Jun 16, 2020 at 14:46 | comment | added | sirreldar | This script does not include any input handling or event listening. Look at this line: new_bullet = projectile(start_x, start_y, dir_x/distance, dir_y/distance, (0,0,0)). If you can find the projectile class, im willing to bet that the constructor (init in python, i believe) includes an example of how to get the x and y magnitudes from start and target positions. You need to add something similar to your bools class. | |
| Jun 16, 2020 at 2:55 | comment | added | Habib Ismail | I have something similar for my player where ever I click with my mouse bullets append but how can I change it for the enemy so it attacks the player? script | |
| Jun 16, 2020 at 0:27 | history | answered | sirreldar | CC BY-SA 4.0 |