[4.5.2] Issues w/ health/ammo pickup on second screen

voltopt

Member
I've started with a one way sidescroller w/ player object (a boston terrier), a walk, stand, and jump animation with sound, an animated projectile w/ sound, and health and ammo pickups. I have a test screen and all the physics are great, except for this:

I can place a pickup on the first screen, and it loads correctly and correctly picks up and replenishes health/ammo, but if its on the second screen it doesn't even show.

This might be a rookie question, and if this is the wrong place to post, let me know!
 

dale_coop

Moderator
Staff member
Some pickup items (like the key, for example) trigger the screen...
A screen can have 2 states: normal state and triggered state:

2020-07-16-20-55-26-NES-MAKER-4-1-5-Version-0x159-Basic-Adv-MST.png

(night states don't work on that version of NESmaker... only day states)

For a screen, the objects you place on the day normal state are not same than the ones placed on the day triggered screen.
When you enter on a triggered screen, all the objects are the ones from the "day trigger" state, also, some tiles are removed/replaced (like the lock door tiles, or the monster lock tiles, ...)
When a screen is triggered, all the screen that have the same screen-type value are triggered too!

2020-07-16-20-59-20.png



It's the reason you need to set a unique screen-type value, for the screen that have trigger-able items:

2020-07-16-21-04-39-Screen-Details.png


Like that, other screens are not impacted by that trigger (sauf if it's you want that behavior)
 

voltopt

Member
Thank you! I'm excited to use triggered screens sometime in the future, but for now I have a simple test setup of four screens based on the last setup from the tutorial (Left to right one way scrolling)

Two things - first, the pickups, if I place them in the open (no prize blocks, just placed on the screen) they do not show up when the game is loaded if they are placed on any screen besides the first one. No triggered screens, all screens set to screen type 1, the item will show up correctly on the first screen if I place it there and will be pickupable (is that a word?!) It seems as if the game is not drawing any pickups beyond the first screen.

Second, just past the first screen transition, Mesen locks up if the player is touching the ground. All of the collisions are correct (again, this is a simple test setup so I only have four screens and three block types - null, solid, and reset)
 

dale_coop

Moderator
Staff member
Oh, you're right, I have the same problem with my demo project.
It might a bug of the current module.

The 4.5 is a beta, made to be used for the Summer Camp, following the tutorials, improving, modifying the module... as you did. It has issues (several).
As Joe explained, don't use it to make a real game, just for fun, to play and learn how it works, how you can modify.
The definitive version (with all the different modules) will be released soon.
 

voltopt

Member
Totally, I didn't know if I was going crazy! It has been fun, starting to alter the code in simple ways to make things happen. I'll try stuff, post, step away, and then think, hey, I haven't tried THIS šŸ˜€
 

dale_coop

Moderator
Staff member
I need to play more with the 4.5 because seems the more people use it the more bugs we discover.
And I hope we can have all those fixed before the Byte-Off competition ;)
 

voltopt

Member
True! I appreciate that you are so responsive. I like that I'm learning in Beta, it makes it more difficult to take things for granted. Either way, I want to get into programming anyway.
 
Top Bottom