sprite - 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:
For more context, here's the link: https://scratch.mit.edu/projects/524150880
解决方案
在项目中,您使用的是设置马赛克效果,而不是更改马赛克效果。这使它什么都不做,然后隐藏起来。
推荐阅读
- jhipster - JHipster“匿名用户”登录
- java - lastmodified 的 Java 1.8 编译错误
- python - Python中的“'type'对象不是可下标的错误”
- r - 尝试在列表上应用函数 plyr::ldply 以转换为不同行数的 data.frame
- jquery - 将基本身份验证凭据放入 jQuery 脚本中?
- javascript - 用于使用 javascript/jquery 创建模板的模板 sdk
- php - 重定向太多。XAMPP ; 本地主机;MYSQL (PHPMYADMIN)
- upload - 新的谷歌网站 - 如何上传 pdf
- c# - 在多行字符串中使用枚举名称将每个字符串行与枚举的整数值相关联。有没有更好的办法?
- python - Django restframework Error binding parameter