Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » damage effects
- p00qy123
-
Scratcher
19 posts
damage effects
how do i make it so when my player gets hit and is low health, the screen gets increasingly more red on the edges. i have tried this with a sprite but it is too much on the middle.
also how would i make a screen shake
also how would i make a screen shake
- Cool_Dude2022
-
Scratcher
500+ posts
damage effects
how do i make it so when my player gets hit and is low health, the screen gets increasingly more red on the edges. i have tried this with a sprite but it is too much on the middle.
also how would i make a screen shake
For the screen shake, you can broadcast something like “screen shake” and rotate all of the sprites back and forth. The background is the only thing that would be tricky to rotate, so I suggest turning it into the sprite if you have one. Another solution would be to make costumes of each of the sprites rotated but that would be a little bit more harder than the first solution that I proposed.
For the red on the edges, you could make a sprite with a red gradient in the corners and walls and use this code:
show
forever
if <(health) < [26]> then
set [ghost v] effect to ((health) * (4))
end
end
Last edited by Cool_Dude2022 (Feb. 5, 2024 15:33:37)
- Discussion Forums
- » Help with Scripts
-
» damage effects

