Discuss Scratch
- Discussion Forums
- » Suggestions
- » Option to remove screen borders- IMPORTANT
- TheLogFather
-
1000+ posts
Option to remove screen borders- IMPORTANT
BTW, your bump reminded me that I meant to mention that, yes, I do see this happen too…
For example, it happens with the “Play” and “Options” clickable items in InterXeptor 3D. It only started happing after the recent update that made the transparent parts of a costume no longer recognised as part of the costume (so they no longer register as being ‘touched’ by mouse-pointer, for example).
To see what I mean, start up InterXeptor, and click on the “Options” item. What should happen now is that the “Done” item comes onto the screen, while the other two items (“Options” and “Play”) disappear off to the left completely. However, they don't quite make it all the way off - they get stuck at the left edge (as you would expect for a sprite that ‘ended’ at their rightmost letter - but they don't end there, since they have an extra transparent border which used to ensure they went all the way off-screen…)

It is possible to create sprites that still have a transparent border to allow going off-screen, but you have to import them from an external graphics package with the transparent part included, so that Scratch will consider it to have dimensions that include the transparent border.
I also see it happen with the flare effect sprites in my 3d demo projects - e.g. this one. (It's not that noticeable, but if you look carefully you'll see they get ‘stuck’ at the edges of the screen. -Fortunately, the large background sprites have enough extra transparency around the originally imported images that they pretty much survive.)
For example, it happens with the “Play” and “Options” clickable items in InterXeptor 3D. It only started happing after the recent update that made the transparent parts of a costume no longer recognised as part of the costume (so they no longer register as being ‘touched’ by mouse-pointer, for example).
To see what I mean, start up InterXeptor, and click on the “Options” item. What should happen now is that the “Done” item comes onto the screen, while the other two items (“Options” and “Play”) disappear off to the left completely. However, they don't quite make it all the way off - they get stuck at the left edge (as you would expect for a sprite that ‘ended’ at their rightmost letter - but they don't end there, since they have an extra transparent border which used to ensure they went all the way off-screen…)

It is possible to create sprites that still have a transparent border to allow going off-screen, but you have to import them from an external graphics package with the transparent part included, so that Scratch will consider it to have dimensions that include the transparent border.
I also see it happen with the flare effect sprites in my 3d demo projects - e.g. this one. (It's not that noticeable, but if you look carefully you'll see they get ‘stuck’ at the edges of the screen. -Fortunately, the large background sprites have enough extra transparency around the originally imported images that they pretty much survive.)
Last edited by TheLogFather (Oct. 15, 2014 21:22:56)
- TimothyLawyer
-
1000+ posts
Option to remove screen borders- IMPORTANT
Or maybe pen movement could be uncoupled from sprite movement at the stage's edge. Then we could at least draw cool stuff that goes beyond 360 x 480 without lots of glitches.
- Cyoce
-
500+ posts
Option to remove screen borders- IMPORTANT
Like that, but how about instead have it say “reset sprite” (as that seems to be more in line with the blocks). Additionally, I would make it slightly different: ···
And finally, a “recover sprite” option in the sprite info area, next to all the checkboxes. This would execute these scripts:go to x: (0) y: (0)···
show
go to front
set size to (100) %
stop [all v]
go to x: (0) y: (0)Anyway, I like the concept! This would help scratchers of all experience levels a lot (+1)!
point in direction (90 v)
show
go to front
clear graphic effects //not just set size
stop [other scripts in this sprite v] :: stack // I believe “stop all” would stop ALL sprites’ scripts, not just the aforementioned sprite
Last edited by Cyoce (Nov. 7, 2014 05:10:05)
- Failord
-
1000+ posts
Option to remove screen borders- IMPORTANT
Like that, but how about instead have it say “reset sprite” (as that seems to be more in line with the blocks). Additionally, I would make it slightly different: ···
And finally, a “recover sprite” option in the sprite info area, next to all the checkboxes. This would execute these scripts:go to x: (0) y: (0)···
show
go to front
set size to (100) %
stop [all v]go to x: (0) y: (0)Anyway, I like the concept! This would help scratchers of all experience levels a lot (+1)!
point in direction (90 v)
show
go to front
clear graphic effects //not just set size
stop [other scripts in this sprite v] :: stack // I believe “stop all” would stop ALL sprites’ scripts, not just the aforementioned sprite
I forgot about clearing graphic effects, so I'll add that. The size block stays because it's not counted as a graphic effect. I think it should still be “stop all” and not “all scripts this sprite” because that stops other sprites from covering it and broadcasts that might make it disappear.
Last edited by Failord (Nov. 7, 2014 15:06:35)
- grokblah
-
100+ posts
Option to remove screen borders- IMPORTANT
We're talking about this and are going to investigate what's going on. Thanks for the information and discussion! We'll update this thread later.
- OmnipotentPotato
-
1000+ posts
Option to remove screen borders- IMPORTANT
Yay! We're talking about this and are going to investigate what's going on. Thanks for the information and discussion! We'll update this thread later.

- Blueinkproductions
-
1000+ posts
Option to remove screen borders- IMPORTANT
YES!!! We're talking about this and are going to investigate what's going on. Thanks for the information and discussion! We'll update this thread later.
- TheLogFather
-
1000+ posts
Option to remove screen borders- IMPORTANT
I'm not sure there's so much to investigate, really… it's simply a ‘fix’ that was made to ensure transparent regions are not included in the ‘hit’ testing of vector costumes. We're talking about this and are going to investigate what's going on. Thanks for the information and discussion! We'll update this thread later.
I haven't checked to be sure, but this would be my guess:
https://github.com/LLK/scratch-flash/commit/85574ae7c72856743c5d321e5ec36654aeb7a563
It's arguable that having a transparent rect included in the hit region of a costume isn't really quite expected behaviour. However, many of us made use of that as a way to get sprites to disappear off-screen. Now the behaviour has changed, it's broken projects which use that ‘trick’ (some more than others).
I guess the question is whether you prefer to ‘break’ a number of previous projects (mainly in a way that makes them visually less appealing), or would rather revert to a somewhat unexpected, if slightly useful, behaviour…
Last edited by TheLogFather (Nov. 17, 2014 03:12:55)
- Failord
-
1000+ posts
Option to remove screen borders- IMPORTANT
I guess the question is whether you prefer to ‘break’ a number of previous projects (mainly in a way that makes them visually less appealing), or would rather revert to a somewhat unexpected, if slightly useful, behaviour…
To make something perfectly clear… a project I was working on (that glitched and died so I can't even display its tortured husk) was entirely slaughtered by this. The cutscene couldn't progress until the sprites were out of the screen, so the project would just stop there.
Last edited by Failord (Nov. 17, 2014 22:14:00)
- Prinseskat
-
1000+ posts
Option to remove screen borders- IMPORTANT
Yeah, if it's so bad as to make a whole project completely useless, then I think they urgently need to fix this.I guess the question is whether you prefer to ‘break’ a number of previous projects (mainly in a way that makes them visually less appealing), or would rather revert to a somewhat unexpected, if slightly useful, behaviour…
To make something perfectly clear… a project I was working on (that glitched and died so I can't even display its tortured husk) was entirely slaughtered by this. The cutscene couldn't progress until the sprites were out of the screen, so the project would just stop there.
- Discussion Forums
- » Suggestions
-
» Option to remove screen borders- IMPORTANT