There's "gravity Cat" as one of the "Animal" sprites built-in to Scratch.
With Scratch open, just click to find a new sprite in a file, choose Animals, then go down right past the "grasshopper" to Gravity Cat.
It comes with two ready-made scripts for making Cat bounce high in the air, then lower, then lower....as gravity takes effect.
Maybe you could modify those scripts to meet your needs....
Offline
Here's a simple falling script with velocity - you can edit it to your needs. Here's the script:
It's simple. There are two steps: The variable increases, and then the sprite changes its Y by the variable amount.
Any questions?
Offline
You could always import the gravity marble and look at its scripts.
Offline
sticky532 wrote:
Thanks Everyone!
If anyone has any other questions, put them here!
--Sticky532
Oh in that case my TD game has 2 glitches that MUST be fixed before I go on. More details here: http://scratch.mit.edu/forums/viewtopic.php?id=31018
Offline
Jonathanpb wrote:
Here's a simple falling script with velocity - you can edit it to your needs. Here's the script:
http://img7.imageshack.us/img7/5121/50a … criptw.png
It's simple. There are two steps: The variable increases, and then the sprite changes its Y by the variable amount.
Any questions?
I have a problem with your gravity script: this script will make the sprite accelerate faster and faster until it hits the ground. you need an if command in there to create a TERMINAL VELOCITY.
Offline
sparks wrote:
Jonathanpb wrote:
Here's a simple falling script with velocity - you can edit it to your needs. Here's the script:
http://img7.imageshack.us/img7/5121/50a … criptw.png
It's simple. There are two steps: The variable increases, and then the sprite changes its Y by the variable amount.
Any questions?I have a problem with your gravity script: this script will make the sprite accelerate faster and faster until it hits the ground. you need an if command in there to create a TERMINAL VELOCITY.
Not exactly easy to do with scratch, where you need sprites to check collisions (can't just check a coordinate)
Offline