Is there a way to make a sprite progressively reduce or increase in size while it's traveling? eg make a car gradually get smaller as it drives off into the distance. I've tried using the 'change size' scripts, but as the sprite only changes size when it gets to the script, it looks jerky and unrealistic.
I guess you'd need a cross between a 'looks' and 'motion' script that said something like 'glide 1 secs to x: 269 y: 156 changing size to -90'. Is such as thing possible to do in any other way?
Offline
Start a separate thread that does the sizing.
Don't wait for the glide , in the thread that control the size read the sprites x and y
Offline
Jennaroni wrote:
Sorry Mike, I'm a total newbie at this and I don't understand your message. Can you give me a concrete example?
What Mike was referring to was that you have two scripts: one script takes care of the gliding, and another script that takes care in adjusting the sprite's size.
ie:
When green flag pressed:
glide 1 secs to x: 269 y: 156
When green flag pressed:
change size by -90
Offline
Thanks fruit and cheddargirl - the 'go to' rather than 'glide' worked OK but I needed to do a lot of playing around with the numbers to minimize jerkiness in the movement. I got the best result with:
Repeat 8
change y by 15
change size by -10
However I'd still prefer to simply provide start and end co-ordinates, number of seconds of travel and end size of the sprite, and leave the program to smoothly adjust the sprite's size over that journey. (As you do with animation programs such as Flash and Director. Yes I know they cost LOTS more than Scratch and I am enjoying playing with Scratch :-)
Offline
Jennaroni wrote:
Thanks fruit and cheddargirl - the 'go to' rather than 'glide' worked OK but I needed to do a lot of playing around with the numbers to minimize jerkiness in the movement. I got the best result with:
Repeat 8
change y by 15
change size by -10
However I'd still prefer to simply provide start and end co-ordinates, number of seconds of travel and end size of the sprite, and leave the program to smoothly adjust the sprite's size over that journey. (As you do with animation programs such as Flash and Director. Yes I know they cost LOTS more than Scratch and I am enjoying playing with Scratch :-)
Try using two seperate scripts rather than just using the one:
<when green flag clicked>
<glide( 1 )secs to x 269 )y 156 )
<when green flag clicked>
<repeat(
<change size by(
<end>
Offline
This?(Scratch project) Download it for code, but it doesn't seem that difficult.
Offline