10/5/2023 0 Comments Game maker studio 2 3d![]() ![]() Then I’m assigning the sprite to be used to a variable. Its size will be determined by the height. After that come the length and width of the bigger rectangle. Then I’m setting the length and width for the base rectangle. This will determine how tall the block is. If you don’t get it, you will when we get to the Draw event. It’s not required but it makes the code feel neater. The macros X and Y will be used in arrays to store x and y values. I’ll create obj_block and in its Create event, I’ll add: //macros We can then join these points to draw a cube, and draw a sprite on each face.īased on its distance from the camera’s center, we can offset the bigger rectangle to give a 3D effect, something like this: Hey! In this tutorial, you’ll learn to make a 3D cube using sprites.įor drawing our cube, we’ll need 8 points, which are the vertices of two rectangles:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |