Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
[SOLVED] How to make multiple bullets (with png) and move at similar time by using Pygame?
I have been making a boss fight with Pygame, I made the boss move by the edge, and change the direction by changing a var called phase, and the boss will make bullets while moving, however I just could make 1 bullet and only 1 direction. I need help. (btw I can't give the code in the comments because I only use Sololearn on phone)
7 Respostas
+ 3
i think it comes down to your code design, you should create multiple bullet objects on each game loop to instantly create multiple bullets at the same time.
and create another method to enable the bullet to move at a certain degree or direction.
we still can't help you much if you don't provide the codes that you are referring to.
+ 2
Without code it would take many questions and answers to just get an idea of how your code works. It is best to post your code if you want a good and reliable answer.
You can connect to your SoloLearn account on your computer, and then copy-paste the code.
+ 2
ä½ ēmake bullet function č£”ęč¦ęäøådictionary ļ¼äøåēphaseęå¼ē¼äøåēåå½ę¹åć
å¦ęéäøęē½ļ¼ęåÆ仄åØéč£”ēØJavaScript åäøåē°”å®ēē¤ŗēÆ
ļ¼ęč
å°ä½ ēsourceę¾äøgithubļ¼å°github repoēlink shareåØéč£”ļ¼
+ 1
lvl 1 crook Thanks, I have solved the problem!
+ 1
awesome Chaney Chan , happy to help :)
0
I think I might post part of the bullet code soon
0
lvl 1 crook l think that you are right, I will try it soon when I get my hands on my pc.