Log In  


I need help with this one error I've been getting. I've tried adding a wave feature to my shoot em up, and now every time I get to wave 2 it gives me this error.

I just know that something about the wave changing and the lack of enemies on screen has to do with it, but I can't figure out where the issue is.

Cart #noyusobuda-0 | 2025-03-12 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA



With the cart you shared, I got the same error, but on wave 1.

The error message is telling you that the variable myen doesn't have a y field, so I would start by checking what myen is. It looks to me like you're expecting myen to refer to a single enemy, but myen is set to the list of enemies instead (in the update_game function).

You can fix it by adding a loop (e.g. for myen in all(enemies) do...)


Thank you so much! It works perfectly now.



[Please log in to post a comment]