新 探索 Scratch 积木词典、核心概念、项目教程与课堂教学指南

开始学习 →

Scratch 实战指南:How to Make a Character Jump with Gravity in Scratch

📌 本页学习重点

先用最少积木跑通核心效果,再逐步调整速度、音效与关卡难度。 Use a y-velocity variable and constant gravity pull for smooth parabolic jumping.

核心思路与实现步骤: Minimal Working Block Recipe

先用最少积木跑通核心效果,再逐步调整速度、音效与关卡难度。

Use a y-velocity variable and constant gravity pull for smooth parabolic jumping.

Test this minimal version first, then tune numbers like speed, gravity, or timing to match your game feel.

Make a Character Jump with Gravity script
  1. when green flag clicked
  2. set [y vel] to 0
  3. forever
  4. if <key [space] pressed? and touching [Ground]?> then set [y vel] to 14
  5. change [y vel] by -1
  6. change y by y vel

动手试一试: The sprite arcs smoothly upward and lands cleanly on the ground.

动手验证与进阶练习: Debugging Checklist & Next Steps

点击绿旗前先预测运行结果,运行后对比变量与坐标变化,快速掌握原理。

If it behaves unexpectedly, verify initial variable resets on the green flag and check that continuous checks sit inside a forever loop.

All 120 Scratch How-To Recipes Return to the reverse lookup index. 查看详情 →

动手验证与进阶练习

点击绿旗前先预测运行结果,运行后对比变量与坐标变化,快速掌握原理。

返回分类总览 Scratch 逆向实战词典 查看详情 → 关于 Scratch大全(编辑方针与质量标准) 了解 Scratch大全 如何在10种语言中提供系统化的 Scratch 积木词典、教程、实战项目与开放教学数据。 查看详情 →

本指南仅供学习参考。Scratch 界面与使用条款可能会随版本更新而变化,请同时参考 Scratch 官方网站说明。