Create and replace art assets for a mini-game #627
jgbourque
announced in
Mini-Games
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Why this task matters
These kinds of objects don’t necessarily have scripts or gameplay mechanics. They're just scenes that help decorate your level or add variety to the world and can help make the space feel more immersive.
Steps
Part 1: Explore a basic art asset
Open the 0_template_intro Scene
While in the template intro scene, follow these steps to explore how the rock object is built and use it as a guide:
Understand Its Structure
Inside the Rock scene you’ll see:
Part 2: Create Your Own Game Object
Want to make a decorative item like a tree, bush, or a house? Here's how to build it from scratch:
Add two child nodes under the StaticBody2D. Add these node by selecting your StaticBody2D node in the Scene Tree, then clicking the "+" button in the top of the Scene Tree to search for and add a new node. Do this two times: once to add a Sprite 2D (this will hold the objects texture) and once a CollisionShape2D (This will make the objection have a solid body). Your Scene Tree should match the rock.tscn from the intro scene.
Add your own texture to the scene. In the Inspector, drag your .png image from the FileSystem into the Texture property of the Sprite2D node.
Additional Tips
Beta Was this translation helpful? Give feedback.
All reactions