Discuss Scratch
- Discussion Forums
- » Bugs and Glitches
- » Costume glitches
- ipzy
-
Scratcher
53 posts
Costume glitches
I've been working on a project and earlier today several of the costumes started glitching out. Two of the costumes appear stretched horizontally, the background is having issues with the color block (getting stuck as the wrong hue even when the color is set to 0 and gradients being colored in chunks rather than as a smooth gradient), and one of the costumes wouldn't update it's appearance when I would change the color/add shapes/etc.
The only thing that I've noticed that might be causing these glitches is that they only happen on large vector costumes (i.e. ones that extend to or beyond the edges of the canvas). Any ideas on what I can do to fix this?
My browser / operating system: MacOS Macintosh X 10.11.6, Chrome 56.0.2924.87, Flash 24.0 (release 0)
The only thing that I've noticed that might be causing these glitches is that they only happen on large vector costumes (i.e. ones that extend to or beyond the edges of the canvas). Any ideas on what I can do to fix this?
My browser / operating system: MacOS Macintosh X 10.11.6, Chrome 56.0.2924.87, Flash 24.0 (release 0)
Last edited by ipzy (March 12, 2017 05:06:33)
- bigpuppy
-
Scratcher
1000+ posts
Costume glitches
Interesting! I don't think I've seen that before.
(Also, I recommend you don't use tinypic, it has too many ads for some people. Try cubeupload. :P)
(Also, I recommend you don't use tinypic, it has too many ads for some people. Try cubeupload. :P)
- ipzy
-
Scratcher
53 posts
Costume glitches
Interesting! I don't think I've seen that before.
(Also, I recommend you don't use tinypic, it has too many ads for some people. Try cubeupload. :P)
Oops! I'm on mobile right now but I'll update with better links when I get home ^^
- TheLogFather
-
Scratcher
1000+ posts
Costume glitches
This is a fairly well-known glitch with costumes that are larger than the screen when the player switches into Stage3D mode.
You can see a project explaining it here: https://scratch.mit.edu/projects/94409099/
Scratch will switch into Stage3D mode if you have a graphic effect block anywhere in your project (except ghost & brightness).
To fix the stretching you have two choices:
1) Don't have any graphic effect blocks in your project (except ghost and brightness). If the only effect you're using (apart from ghost/brightness) is a colour effect occasionally, I would recommend you try to avoid Stage3D entirely by creating costumes which have the colours you want (rather than using colour effect to change the colours).
2) Split your costumes into smaller costumes (less than 480px across and 360px high), and use clones (or maybe separate sprites) to show all the parts at the same time, as if it's one costume.
As for the backdrop colour effect problem, there is another Stage3D glitch where the backdrop doesn't have its graphic effects reset after the project stops, and it can interfere with what happens later.
Sprite costumes do get reset correctly, though, so you *could* work around it by having a sprite take over the job of ‘being’ the backdrop, rather than using stage…
You can see a project explaining it here: https://scratch.mit.edu/projects/94409099/
Scratch will switch into Stage3D mode if you have a graphic effect block anywhere in your project (except ghost & brightness).
To fix the stretching you have two choices:
1) Don't have any graphic effect blocks in your project (except ghost and brightness). If the only effect you're using (apart from ghost/brightness) is a colour effect occasionally, I would recommend you try to avoid Stage3D entirely by creating costumes which have the colours you want (rather than using colour effect to change the colours).
2) Split your costumes into smaller costumes (less than 480px across and 360px high), and use clones (or maybe separate sprites) to show all the parts at the same time, as if it's one costume.
As for the backdrop colour effect problem, there is another Stage3D glitch where the backdrop doesn't have its graphic effects reset after the project stops, and it can interfere with what happens later.
Sprite costumes do get reset correctly, though, so you *could* work around it by having a sprite take over the job of ‘being’ the backdrop, rather than using stage…
Last edited by TheLogFather (March 12, 2017 17:18:33)
- ipzy
-
Scratcher
53 posts
Costume glitches
This is a fairly well-known glitch with costumes that are larger than the screen when the player switches into Stage3D mode.
You can see a project explaining it here: https://scratch.mit.edu/projects/94409099/
Scratch will switch into Stage3D mode if you have a graphic effect block anywhere in your project (except ghost & brightness).
To fix the stretching you have two choices:
1) Don't have any graphic effect blocks in your project (except ghost and brightness). If the only effect you're using (apart from ghost/brightness) is a colour effect occasionally, I would recommend you try to avoid Stage3D entirely by creating costumes which have the colours you want (rather than using colour effect to change the colours).
2) Split your costumes into smaller costumes (less than 480px across and 360px high), and use clones (or maybe separate sprites) to show all the parts at the same time, as if it's one costume.
As for the backdrop colour effect problem, there is another Stage3D glitch where the backdrop doesn't have its graphic effects reset after the project stops, and it can interfere with what happens later.
Sprite costumes do get reset correctly, though, so you *could* work around it by having a sprite take over the job of ‘being’ the backdrop, rather than using stage…
Thank you so much this is very helpful info! For the stretching I don't have any graphic effect blocks (only show/hide/wait/switch costume) but I'll try what you suggested about splitting it into multiple costumes
- TheLogFather
-
Scratcher
1000+ posts
Costume glitches
For the stretching I don't have any graphic effect blocks…Yes you do! –You've already said that you used colour effect on your backdrop. (And your picture shows such a colour effect applied to the backdrop, making the trees go blue.)
It only takes *one* graphic effect block (except ghost/brightness) *anywhere* in the project (even if not used) for the project to switch into Stage3D mode, and so cause the stretching problem on all >480x360 costumes throughout the whole project.
The only way to stop it happening to a costume that's larger than 480x360 is to purge the whole project of such blocks…
Last edited by TheLogFather (March 12, 2017 22:11:42)
- ipzy
-
Scratcher
53 posts
Costume glitches
For the stretching I don't have any graphic effect blocks…Yes you do! –You've already said that you used colour effect on your backdrop. (And your picture shows such a colour effect applied to the backdrop, making the trees go blue.)
It only takes *one* graphic effect block (except ghost/brightness) *anywhere* in the project (even if not used) for the project to switch into Stage3D mode, and so cause the stretching problem on all >480x360 costumes throughout the whole project.
The only way to stop it happening to a costume that's larger than 480x360 is to purge the whole project of such blocks…
What I meant was that I have no graphic blocks within that sprite because when you said “anywhere in your project” I thought you meant as in affecting both sprites and backdrops on an individual basis.
- 1scratchergirl
-
Scratcher
3 posts
Costume glitches
Some games brake my computer this is my tenth computer
- Discussion Forums
- » Bugs and Glitches
-
» Costume glitches



