Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs issue at: Quick Start: Making Your First 2D Game #2960

Closed
JumpIntoCoding opened this issue Jun 18, 2024 · 1 comment
Closed

docs issue at: Quick Start: Making Your First 2D Game #2960

JumpIntoCoding opened this issue Jun 18, 2024 · 1 comment

Comments

@JumpIntoCoding
Copy link

filePath: en/getting-started/first-game-2d/index.md
content:
The tutorial:
The engine will automatically get the Animation component on the Body node and assign it to BodyAnim. As a result, the PlayerController's BodyAnim property references the Animation component of Body node.
image
image

My case

  1. The "Body Anim" is null at the begining, and I have to create it.
  2. After clicking the blue "Create" btn, I cannot drag anything to it. To be more accurate, I can do NOTHING with it, its blank.
image image
@MrKylinGithub
Copy link
Contributor

TypeScript and Cocos Engine both have Animation classes.
So, please ensure the Animation class has been imported by import { ... } from 'cc, or it will use the Animation class from the TypeScript package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants