I heard @paisleypug wanted a dodge example to exist so here it is!
When you dodge you stop moving due to me using the Enable behavior.
If you wanted to still be able to move while dodging that would be a little more complicated (unless you already use position) so I just made a simple example for a stationary dodge.
Don’t say your dumb everyone learns at their own speed, we were all in your shoes once so chin up and maybe you can be better than the geniuses on flowlab.
If anyone wants to make a dodge roll or like a dash dodge,
I would suggest putting a switch in front of your collisions instead of using the disable block.
I know you finished it, but you said it took you a while so I made one in case anyone else needed one. If a stationary dodge is required my example allows you to set the duration of the dodge (in the frames) and the delay between when you can dodge again, so it seems like it could be useful. Also a side note, the projectile goes through the player, which is not something that can be done by turning off collisions
For a dash dodge, turning off collisions instead of the disable block is a much better way of doing collisions, but I didn’t do that because using a single switch to turn taking damage off doesn’t seem like an example. I feel most people would understand that the collision makes them take damage, so using a switch to turn it off would give the effect of a dodge.
Doing the thing JR and I said will work for both a roll, dash, or anything really. The only thing to note about using a switch to turn off collisions is that projectiles will not move through the player (The player is still solid like normal)