首页 > 解决方案 > scratch sprite mosaic effect not working consistently

问题描述

I have a simple shooter game where a gliding sprite is supposed to shatter (using mosaic effect) when hit, then disappear. Problem is, the sprite only shatters and disappears maybe 1 time out of 5. Here's the relevant code snippet:

enter image description here

For more context, here's the link: https://scratch.mit.edu/projects/524150880

标签: spritemit-scratch

解决方案


在项目中,您使用的是设置马赛克效果,而不是更改马赛克效果。这使它什么都不做,然后隐藏起来。


推荐阅读