NPC shop!!

User avatar
CGdfc
Posts: 39
Joined: Sat Jun 08, 2019 12:40 am

Re: NPC shop!!

Post by CGdfc » Thu Aug 15, 2019 3:22 pm

dale_coop wrote:
Thu Aug 15, 2019 3:21 pm
Oh sorry! I got it...
You are using the 4.1.5... but this module doesn't contain the 4.1.1 patch (why? Joe must have forgot to include the modified files in that version).
(This patch fix the SubtractValue macro that has a bug).

So you need to install the 4.1.1 engine patch :
Download the file: http://joshuafallon.com/wp-content/uploads/NESMaker4.1.1EnginePatch.zip (keep it zipped)
And to install it, in NESmaker, via the menu "Project > Run Project Script"... and select "NESMaker4.1.1EnginePatch.zip". Validate the messages.
ouch!
I'm going to make a copy of the nesmaker and I try.
User avatar
dale_coop
Posts: 3945
Joined: Fri Feb 16, 2018 7:05 am
Location: France

Re: NPC shop!!

Post by dale_coop » Thu Aug 15, 2019 3:24 pm

That patch modify 2 scripts (the SubtractValue macro and the CheckPlayerCameraPosition that had an issue with player and screen edges)
-----
Sorry about my poor english
All I need: A Damn Fine Cup of Coffee
My games: PRESS START GAME / UNDERGROUND ADVENTURE / UNDERGROUND ADVENTURE (Arcade version - Byte-Off-2019)
User avatar
CGdfc
Posts: 39
Joined: Sat Jun 08, 2019 12:40 am

Re: NPC shop!!

Post by CGdfc » Thu Aug 15, 2019 3:39 pm

dale_coop wrote:
Thu Aug 15, 2019 3:24 pm
That patch modify 2 scripts (the SubtractValue macro and the CheckPlayerCameraPosition that had an issue with player and screen edges)
ok,now work with 4.1.1 patch!!
only noticed that the time system that I had now counts 5 in 5, I also believe that I will remove it in my game.

Could I change the money item so that I don't get 5 coins for each item? to change it to 1 or 2.
having the limit of 90 of the npc, it is better not to get the money so easy.
User avatar
dale_coop
Posts: 3945
Joined: Fri Feb 16, 2018 7:05 am
Location: France

Re: NPC shop!!

Post by dale_coop » Thu Aug 15, 2019 4:05 pm

If it's when you collect the coin pickup... modify the "PowerUp_IncreaseMoney.asm" script (the one assigned to the "Power Up 03" element in the "Project Settings > Script Settings").
And change the:

Code: Select all

	AddValue #$03, myMoney, #$05, #$00
With:

Code: Select all

	AddValue #$03, myMoney, #$01, #$00
-----
Sorry about my poor english
All I need: A Damn Fine Cup of Coffee
My games: PRESS START GAME / UNDERGROUND ADVENTURE / UNDERGROUND ADVENTURE (Arcade version - Byte-Off-2019)
User avatar
CGdfc
Posts: 39
Joined: Sat Jun 08, 2019 12:40 am

Re: NPC shop!!

Post by CGdfc » Thu Aug 15, 2019 4:47 pm

YES! this is other awesome dale tutorial. Work very good!!
thanks dale_coop! :)
User avatar
dale_coop
Posts: 3945
Joined: Fri Feb 16, 2018 7:05 am
Location: France

Re: NPC shop!!

Post by dale_coop » Thu Aug 15, 2019 4:58 pm

You're welcome ;)
-----
Sorry about my poor english
All I need: A Damn Fine Cup of Coffee
My games: PRESS START GAME / UNDERGROUND ADVENTURE / UNDERGROUND ADVENTURE (Arcade version - Byte-Off-2019)
Post Reply