Out of all the combat forms spawned (Those walking guys you meet in the beginning), only one follows my game update code.
The turrets that you spawn, I have a few issues: 1, The spawn rate is random, and 2, only one turret fires missiles. The others apparently don’t function at all.
The goopers at the back have the same problem as the turrets.
Notes:
I’m not done with the game.
I’m still working on enemy ai and level maps so once you finish the first level you’ve technically “won”.
Your variable combatform points to one, single sprite. I think you have the right idea with the for element loop, but you never use the loop variable, value. In that for element loop, each time the code in the loop runs, value points to a different sprite.
Take a look at your other code for the other two bullet points and make similar adjustments. If you need help, or if I got this totally wrong, just let us know!
If I can offer you another suggestion: I noticed your forever loops all start with a pause. You may want to switch those loops to on game update every X ms instead.
Your code looks great! Really nicely organized and really good use of functions. Nice work!
Thank you so much! It really worked, and after some 30 minutes of playing around I got every sprite under its kind to do what it’s supposed to do! Thank you so much for your time and effort to help me!