Shooting only hits for the first or last bullet 2d space shooter
-
If you want to see the arrays that @vinicity is talking about, I suggest looking at some gamejam projects that have multiple of similar sprites. Gamejam games are simple so you should be able to understand the logic better and many of them feature this concept.
-
Could I possibly get a simple example?
-
I could work on something that might help. Might be a couple of days though as I am focused on the Gamejam.
-
Ok sounds good thank you I will also continue to try some things
-
If you want to look at an example, check out my last game jam entry, Parker Pumpkin's 115th Dream
Look at how I handle the array called enemies. The enemies in that game are basically bullets shot from the corners of the screen. When they fly outside the screen I use removeSprite and then remove them from the enemies array.
-
Ok thank you I'll give it a go
-
I'm sorry I can't seem to get it to work
-
Share your code and someone can take a look at it. We are all kind of busy with the game jam right now, though...
-
@vinicity my code is f1563mndsg
-
Been meaning to take a look bud but been fighting for time at the moment, hang in there your be shooting enemies left right and center soon enough 😁
-
@waldron alright sounds good thanks a ton
-
Took a look, I'v started writing out some helpful create/remove sprite functions at the top should hopefully share it tomorrow just want to make it clear for you to understand 🙂
-
Awe thanks so much
-
Awesome is what I meant to say lol
-
-
@waldron wow this is awesome thanks so much
-
Sorry the demo I promised still isn't finished. I have been extra busy with school work lately so I have not had much time. If you still want it I could try to finish it by the end of the week.
-
Hmm the code doesn't work
-
Sorry @poof92, Fuze is continuing to crash my switch whenever I try to share the demo. Whenever the servers are back up and working again I will put the download code in this thread.
-
@poof92 I re-shared the program the other day due to the server issues the code is now cyk73mqa2u and is now live