I'm trying to create a custom block that spawns a sprite if Mario hits the block at full speed, and hurts him if Mario hits the block any slower. The "hurt Mario" function seems to work, but I can't get the "spawn sprite" function to work. I don't actually know what Mario's maximum X speed when running is, but I've tested different "greater than or equal to", "equal to", "less than" values and none of them seem to work; the block always hurts Mario even when hitting it at full speed. The only exception I could make was when making the block act as 25, and this caused Mario to go through the block without interaction when at full speed.
Here is the code, if there's something wrong with it then please let me know.
Block code
Here is the code, if there's something wrong with it then please let me know.
Block code