How to make a Tile, instead of Death, and kill you directly, make it take away a part of Health?

salgue79

New member
Hello again, friends.
I was trying to make a tile, which I have skewered, to remove the protagonist a part of Health, but the options, only let Death use. Is there any way I can make the tile touch, only subtract a part of Health ??
 

dale_coop

Moderator
Staff member
There are several topics about that ont he forum:
- http://nesmakers.com/viewtopic.php?f=40&t=2695&p=16912
- http://nesmakers.com/viewtopic.php?f=60&t=4117&p=21676
- http://nesmakers.com/viewtopic.php?f=23&t=1665&p=10122
 

salgue79

New member
I created the first tutorial you passed me, but I don't know how to link the created script to the tile.
How should I do it?
 

salgue79

New member
I have done the first tutorial. The only thing is that the object that takes away my health is not physical, and the character falls for it. It also happens that the health indicator, are only 3 Heatlh, and when I remove a Health, it marks 4 empty Heatls .... This is because?
 

dale_coop

Moderator
Staff member
In the "Project Settings > Script Settings", select the "Tile Collision xx"... that corresponds to your hurt tile, and assign your script to that element.

For example, if you want to your the tile type was the "15":
2020-06-09-14-37-49-Project-Settings.png


Maybe yours is not the 15... (depends which module you are using)
 

dale_coop

Moderator
Staff member
Sorry, I don't understand.
Share video or screenshots of the issue and the script you use.
 

salgue79

New member
That the object that takes away health, in this case, skewers, is not solid, even if it takes away health. And also, the character's health counter is 3 circles, and when colliding with the tile that removes health, it marks 6 energy counters, 4 of them empty. It is like removing the counter you lose when colliding with the tile, but add 3 more gaps.
 

dale_coop

Moderator
Staff member
You want that "hurt tile" to be solid?
Then, try adding:
Code:
	LDA #TILE_SOLID
	STA tile_solidity
...at the beginning of the myHurtTile.asm script.
 

salgue79

New member
222/5000
What about the solid tile, I put it in Spike.asm ??
Here in the images you can see what he was saying to you, before and after the collision. Before the collision the marker is 3 energy points, and then it marks 6 energy points.
 

salgue79

New member
Did you see the images? What I was saying, that when you lose a point of health in the skewers, in sale marker with 6 points of health, when it only has 3 actually. It takes away one point of health, that's fine, but 3 more points come out on the health marker, empty.
 

salgue79

New member
In the HUD everything is well put. MyHealth is in 3 in all sections. There is not the problem, since this problem only happens in the Tile of the spike that I create.
 
Top Bottom