Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • CreatiCode
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

CreatiCode Scratch Forum

  1. CreatiCode Forum
  2. 知识库
  3. 二维积木
  4. 更改x坐标、y坐标

更改x坐标、y坐标

Scheduled Pinned Locked Moved 二维积木
1 Posts 1 Posters 713 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    creaticodeteacher2-mail
    wrote on last edited by admin
    #1

    介绍

    可以用以下积木设置角色的x坐标、y坐标:

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/d59feb83-14a9-491f-ac1a-ec787023b422.png" width="700" style="">

    然而,如果你只想把角色移动一个相对距离,有个更简单的方式。

     

    积木:“将x更改”

    如果你要使角色沿x轴方向左右移动,可以用积木“将x更改”。正数使角色向右移动,负数使角色向左移动。

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/69ed308c-81b5-45b8-8a61-a35f951b22fe.gif" width="700" style="border-radius: 5px; border: 1px solid #29622d;">

    注意:如果角色已经到达左右边缘,就不能使角色移动到更远距离,因为角色不能移动到舞台之外。

     

    积木:“将y更改”

    如果你要使角色沿y轴方向上下移动,可以用积木“将y更改”。正数使角色向上移动,负数使角色向下移动。

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/263d656e-6f79-47b8-ab3e-2d48204b43a9.gif" width="700" style="border-radius: 5px; border: 1px solid #29622d;">

     

    同时更改x和y

    注意:如果你想同时更改x坐标和y坐标,只需要同时使用这两个积木“将x更改”和“将y更改”。因为两个积木都运行非常快,看起来就像两个积木同时运行:

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/84f67090-dfd8-4a2d-a387-d7fcc1b0acc3.gif" width="700" style="border-radius: 5px; border: 1px solid #29622d;">

    1 Reply Last reply
    0

    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

    With your input, this post could be even better 💗

    Register Login
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • CreatiCode