NESmaker pi beta (3.14x) and tutorials!

User avatar
TheNew8bitHeroes
Posts: 324
Joined: Fri Feb 16, 2018 9:24 pm
Location: Sarasota, FL
Contact:

Re: NESmaker pi beta (3.14x) and tutorials!

Post by TheNew8bitHeroes » Thu Jun 21, 2018 11:08 am

I’ll actually research that today. I have a feeling that it’s just a matter of a rogue byte write to in the case of loading a triggered screen, so a problem at engine level not tool output level, which should be easy to tech since the engine is still pretty light.
User avatar
Rob Burrito
Posts: 100
Joined: Mon Apr 23, 2018 4:31 pm

Re: NESmaker pi beta (3.14x) and tutorials!

Post by Rob Burrito » Thu Jun 21, 2018 1:36 pm

sounds good, yeah placing day triggered monsters hasn't been a thing in the tutorials yet, so might be alittle ahead of it's time. i narrowed it down as much as i could for ya!
User avatar
TheNew8bitHeroes
Posts: 324
Joined: Fri Feb 16, 2018 9:24 pm
Location: Sarasota, FL
Contact:

Re: NESmaker pi beta (3.14x) and tutorials!

Post by TheNew8bitHeroes » Fri Jun 22, 2018 3:35 pm

Ok, the monster-edge problem is patched. I’ll show you a very quick way you can patch it yourself!

What we’re going to do is ignore object collisions if we’re currently engaged in changing screens (as predicted, this is where that problem manifested!). This is just a few lines of code inside Routines\System\HandleObjectCollisions.asm.

Check the attached image for update to the code and let me know if that fixes things for you as well! :-)
Attachments
BF7C1B76-A6DA-48BF-9841-54ACF55D4CA3.jpeg
BF7C1B76-A6DA-48BF-9841-54ACF55D4CA3.jpeg (8.59 MiB) Viewed 442 times
User avatar
Rob Burrito
Posts: 100
Joined: Mon Apr 23, 2018 4:31 pm

Re: NESmaker pi beta (3.14x) and tutorials!

Post by Rob Burrito » Fri Jun 22, 2018 7:41 pm

yeah that fixed it. monster back in his bastardly position haha, now to play around with functionality. any challenges yet for the new tutorials? i was going to add a gravity effected/arching projectile next, hopefully with up+b as the input if all goes well!
User avatar
TheNew8bitHeroes
Posts: 324
Joined: Fri Feb 16, 2018 9:24 pm
Location: Sarasota, FL
Contact:

Re: NESmaker pi beta (3.14x) and tutorials!

Post by TheNew8bitHeroes » Fri Jun 22, 2018 8:22 pm

oh snap! Yeah, go for that, that'd be awesome to see! :-)

I've been busy curtailing some bugs in the HUD code. An ugly issue is happening when two Number Value type elements are trying to be drawn simultaneously. The values seem to be stepping on each other (not to mention, the version you have is ALL messed up and particular). So my focus is there!
User avatar
TheNew8bitHeroes
Posts: 324
Joined: Fri Feb 16, 2018 9:24 pm
Location: Sarasota, FL
Contact:

Re: NESmaker pi beta (3.14x) and tutorials!

Post by TheNew8bitHeroes » Sat Jun 23, 2018 2:14 am

Also, a hint............

You can try to use the double button approach but you might find yourself having trouble because of the necessary precision of button press! Probably what you want to do is, when you press be, IF the up button is also pressed, create the bomb, if not, create the projectile.

So you CAN read the gamepad directly, like this:

Code: Select all


;LDA gamepad
;AND #%76543210
;;; all of those bits would be one or zero...I believe the buttons for this engine are:
;; 7 = right
;; 6 = left
;; 5 = down
;; 4 = up
;; 3 = start
;; 2 = select
;; 1 = b
;; 0 = a

;; so to check to see if the up button was down, you'd write:

   LDA gamepad
   AND #%00010000 ;; check up button
   BEQ upButtonWasNotPressed ;; if it was set to ZERO, that means it was not down
          ;;; here, this is what would happen if the button WAS pressed.
    ;;;create the bomb
    JMP doneWithButton
upButtonWasNotPressed:
   ;;; create the projectile
doneWithButton:
RTS
This checks if the button is CURRENTLY DOWN...it could all go inside the b button pressed script or whatever you're using to create objects. So when the b button is pressed (tool handles), it checks to see if the up button is being held (this script handles). Just a thought. :-)
User avatar
dale_coop
Posts: 1281
Joined: Fri Feb 16, 2018 7:05 am
Location: France

Re: NESmaker pi beta (3.14x) and tutorials!

Post by dale_coop » Sat Jun 23, 2018 7:27 am

Thanks for this usefull code. Will certainly reuse it somewhere someday.
-----
Sorry about my poor english
All I need: A Damn Fine Cup of Coffee
My games: PRESS START GAME / UNDERGROUND ADVENTURE
User avatar
dale_coop
Posts: 1281
Joined: Fri Feb 16, 2018 7:05 am
Location: France

Re: NESmaker pi beta (3.14x) and tutorials!

Post by dale_coop » Sun Jun 24, 2018 6:23 pm

Finished the tutorial, tried to reproduce it withy assets from my PressStart game.
Was fun, love the new checkpoint tile type <3
A video here: https://youtu.be/w_RBFfuuMwc

Plateform_Mini.png
Plateform_Mini.png (9.11 KiB) Viewed 363 times
-----
Sorry about my poor english
All I need: A Damn Fine Cup of Coffee
My games: PRESS START GAME / UNDERGROUND ADVENTURE
User avatar
TheNew8bitHeroes
Posts: 324
Joined: Fri Feb 16, 2018 9:24 pm
Location: Sarasota, FL
Contact:

Re: NESmaker pi beta (3.14x) and tutorials!

Post by TheNew8bitHeroes » Wed Jun 27, 2018 1:43 pm

This is excellent! :-)
Locked