Projectiles stop working 4.5.9

keith2

New member
I'm not sure if it's just a limitation of Nesmaker or not, but if I continuously fire projectiles they quit working. I'm sure it's probably too much going on in the screen but shouldn't they just flicker, not stop completely? I'm using the Metro-Vania project files.
I want them to fire full screen and fast like Mega Man. I'd rather not limit the amount or have them get destroyed early.
Thanks for any help.
 

kevin81

Well-known member
Hi keith,

By default, sprite cycling (or flicker) is not implemented in NESMaker. You can implement it by following this tutorial by AllDarnDavey:

Flickering or not, you will be experiencing slowdown when a lot of projectiles are on screen though.
 

keith2

New member
Hi keith,

By default, sprite cycling (or flicker) is not implemented in NESMaker. You can implement it by following this tutorial by AllDarnDavey:

Flickering or not, you will be experiencing slowdown when a lot of projectiles are on screen though.
Hey Kevin, thanks for the reply. I will check that link out, that is really helpful.
Do you know if that's normal behavior or a bug for the projectiles to completely stop working all together when firing too many? Once that happens you can no longer shoot.
 

kevin81

Well-known member
I think that's an arbitrary limit of NESMaker. There's a constant called TOTAL_MAX_OBJECTS, which by default I think is 13, so that would probably cause additional projectiles to not spawn. Did you set "Destroy object" as the projectile's edge reaction? That would at least clean up projectiles that have left the screen.
 

keith2

New member
Oh, that's good to know I can change that. I do have destroy object on edge but I didn't have any edge so maybe it just kept going through different screens. I guess I could make it always have an edge at some point.
Thanks.
 
Top Bottom