dwtiger wrote:Thank you so much! Hopefully I'll be on a clear path to finishing this game... Eventually. I don't think I could've fixed this on my own!
Yw sir,
cool that you are back on track
Good luck with your game, you doing really well man keep going, One thing I will do before you go further with your project and it gets much bigger and messy you will have a hard time to find bugs, so I recommend you to stop for a few hours just to organize your code in groups before is too late, and look for things where you can optimize them
example:
Why use an enemy size of 280x280 when his actual size is just 36x36 ?? you are wasting x8 times more memory for each enemy when you could just put 36x36 and use the Line of sight to see if the enemies are in the range of the Player like you do with the overlap but cheaper. you will save memory and collisions checks
Read this very carefully:
https://www.scirra.com/blog/112/remember-not-to-waste-your-memoryAnother thing remember to keep testing performance to see if you are doing something wrong that can hurt you performance
Create a layer call it "HUD" then click on that layer and in the left panel look for parallax change the (100,100) to (0,0)
Now create a text in that layer HUD
And on the event sheet add
Every Thick: >>Txt >>set txt >>to >> "Fps: " & fps & newline & "Cpu: " & round(cpuutilisation * 100)
so with this, you will see the fps and cpu on the screen all the time while you testing
And here is a link for some info about Groups:
https://www.scirra.com/manual/80/groups