SMBX 1.4.5: Hit
Posted: 6 Nov 2019, 0:47
1)
(I put this script in the Level - Start event)
char(1).id=3
char(1).status=2
char(1).hitpoint=5
I have noticed that when a number greater than 3 is placed on the char (1) .hitpoint property and the player is damaged: the damage time is not equal, ie, when the player is damaged, the player is paused some 36 frames, it fails.
I have put the script of the first lines.
In these animated gifs the first 2 hits to the player the pause is ignored, the third one is correct.
2)
I know what I write is a suggestion but there should be something like sysval(Player1HitPointMax)(of a suggestion I made) this is the number of hearts limit, is because when I put the script 'char(1).hitpoint=5' and the player gets hurt he can only recover life(only up to 3 hearts) and I can't have 5 again.
(I put this script in the Level - Start event)
char(1).id=3
char(1).status=2
char(1).hitpoint=5
I have noticed that when a number greater than 3 is placed on the char (1) .hitpoint property and the player is damaged: the damage time is not equal, ie, when the player is damaged, the player is paused some 36 frames, it fails.
I have put the script of the first lines.
In these animated gifs the first 2 hits to the player the pause is ignored, the third one is correct.
- Spoiler

- Spoiler

2)
I know what I write is a suggestion but there should be something like sysval(Player1HitPointMax)(of a suggestion I made) this is the number of hearts limit, is because when I put the script 'char(1).hitpoint=5' and the player gets hurt he can only recover life(only up to 3 hearts) and I can't have 5 again.