ScratchData LogoScratchData
Back to TheLogFather's profile

SPD: "don't rotate" when drawing

THTheLogFather•Created September 15, 2016
SPD: "don't rotate" when drawing
100
65
3990 views
View on Scratch

Description

===================================== *** NOTE: this project was written during Scratch 2, and no longer applies for Scratch 3 *** (Also, the timer non-refresh issue in Scratch 3 means the timing here completely fails anyway...) ===================================== I should've made this a long time ago, as I've seen numerous projects where this had a big impact on drawing speed... This is a speedtest showing how important it is to set a sprite's rotation-style to "don't rotate" if you're drawing with pen, and changing the sprite's direction with blocks such as "turn ( ) degrees", "point towards" and "point in direction". Setting the rotation-style to "don't rotate" prevents the costume from actually being rotated, but the sprite's 'direction' will still change, so it will still "move ( ) steps" in the direction you want. If Scratch does not have to bother re-calculating a costume's bitmap at each new rotation angle, this is a *big* saving. BTW, the square vector costume here is very easy for Scratch to rotate. With a more complicated or larger costume (esp. bitmap), the performance hit becomes greater... even *much* greater...

Project Details

Project ID121320890
CreatedSeptember 15, 2016
Last ModifiedMarch 27, 2022
SharedSeptember 15, 2016
Visibilityvisible
CommentsAllowed