One UP item

KoolDoob

Member
Hey guys!

I'd like to create an item wich gave to my hero one up when he collected it, but I don't know how.

Thanks for the help :)
 

KoolDoob

Member
I'm sorry, let me explain better :

I want to make for my game an unlimited numer of lives but 3 "hearts" for each lives.
 

dale_coop

Moderator
Staff member
So, if unlimited number of lives, it means that "1Up" would be "increase health"?
Assign the Powerup_increaseHealth.asm script to the "Power up XX"element (in the Project Settings > Script Settings) corresponding to the Pickup object you want to use for that.
 

KoolDoob

Member
Thanks for the answer! I did this but it's not working.

I made a new tile (maybe it's not the right word) in game objects in the "Item Santé" folder. Do I have to make a new asset ?
 

Attachments

  • Item santé.PNG
    Item santé.PNG
    5.9 KB · Views: 541
  • When I want to test.PNG
    When I want to test.PNG
    15.5 KB · Views: 541
  • PowerUp_IncreaseHealth.PNG
    PowerUp_IncreaseHealth.PNG
    30 KB · Views: 541

dale_coop

Moderator
Staff member
Oh ok, you have an error when compiling... the script you assigned to your project (to your Power Up 00) use a sound, and you don't have that one declared.
So, to fix this error, you need to add a new SFX label, in the "Sound > SFX" section of NESmaker, and name it "SFX_INCREASE_HEALTH" (it's ok, if you don't have any real sound for it, yet). It just need to be declared here.

2019-09-17-11-25-24-NES-MAKER-4-1-5-Version-0x159-Projet-Non-Enregistr.png
 

KoolDoob

Member
Thanks it works fine, I can test my game again.

But, when I go on the "Item Santé" I can't pick it up :roll:
 

Attachments

  • Can't pick it up.PNG
    Can't pick it up.PNG
    2.2 KB · Views: 534

dale_coop

Moderator
Staff member
Have you given a bounding box to your pickup object?
Have you set it as "pickup / powerup" (in the "Object Details")?
Also, don't forget to set the Edge object reaction to "Screen extend".

2019-09-17-15-04-32-NES-MAKER-4-1-5-Version-0x159-Projet-Non-Enregistr.png
 
Top Bottom