Now that it’s the right size, let’s draw on it. Click the small box with four arrows under Image Size and set the width and height to 64×64 pixels under Scale Image. To navigate the workspace, use the scroll wheel to scroll or the middle mouse button to move around. objects, or that we just put in our scene to look pretty. Sprites don’t do anything, they are just pictures that are sometimes animated that we attach to things that have code, i.e. Sprites are the game dev word for images. Right-click the Sprites section of the Resource Tree, then click Create Sprite. Let’s make a new Sprite and then add it to the player object. That’s because it doesn’t have a Sprite yet. Right now, unfortunately, our player object looks like nothing. It’s also useful if you want to name two different things the same name, like obj_player (for the object) and spr_player (for the sprite). It can become tricky to remember what’s what, so this helps with organization. We do this because we will often have to mention the names of things in our code. That way, they know if what they are using is an object or something else. For example, many people will name their objects obj_somthing or Osomething. It’s a really good idea to name things in a way that will tell you what they are.
0 Comments
Leave a Reply. |