I added a different explosion and sound effect here just for fun. With the Collision-Brick event selected, drag the Destroy action and make sure it’s set to Other, meaning the ball will destroy the other object in this collision, in this case it’s the Brick. Now Game Maker knows to have the Ball bounce off the Bricks, but let’s also have the Ball destroy the Bricks. Then add the Bounce action from the Move tab and make sure it’s set to bounce against solid objects since our Brick object is set to Solid. Still in the Ball window, add a new event: Add Event > Collision > Brick object. Now we need the ball to bounce off of Bricks. Here’s how your Ball object should look so far (since none of these actions affect each other, they can be in any order): For the speed, enter speed + 1 (speed is a built in variable that tells the object how many pixels to move per frame). Use the same red arrow icon from the Create event with the same 8 directions selected. Now let’s change the direction of the ball and increase the speed. Drag over the grey square bordered loose change icon We also want it to make an explosion sound effect. Go to the Draw tab on the right and drag over the Create Effect icon This event is triggered when you press down on the left mouse button while the cursor overlaps this particular ball.Įxplosion time. We want to know when the user clicks it so hit Add Event > Mouse > Left Pressed. Now let’s make it explode and change its trajectory when clicked. Make sure to enter a speed as well, so the ball actually moves – I did 5. Here’s how the Brick object properties should look: This is for stationary objects involved in the Game Maker physics stuff. All we want to do for our Brick is check the “Solid” checkbox on the left. Game Maker logic is event driven, so you have to tie actions to different events like collisions, timers, clicks, etc. Name it Brick and pick your brick image from the sprite dropdown menu Let’s make three game objects: Brick, Ball and Logic (for keeping score and playing music). We need to combine our sounds and images together in a way that creates our game design of clicking balls to make them explode.
How to download sprites for game maker archive#
Check out the Free Music Archive for some tunes.Programming Game Maker can play a lot of different formats like wav, midi, and mp3. Once you have a sound you like, rename it at the top of the window, and click “OK” at the bottom of the window to bring it into your project.We load music the same way as sound effects. Then load them in Game Maker the same way you’d load up a premade sound. Generate some cool sounds and export them as WAVs.
How to download sprites for game maker Pc#
Or, I like using a program called sfxr to make sounds (you can directly download it here for PC or here for Mac). Game Maker has some premade sound effects, which you can browse and preview by clicking the green play button. To add sound effects, click Resources > Add Sound to bring up the Sound Properties window, and click Load Sound. We need a click sound and an explode sound. Using the tools, draw a big happy circle and give it a funny face. The 32 x 32 pixel field will be very small, but you can zoom in using the magnifying glass in the corner. Double-click the new frame called “Image 0,” which will bring up a paint program. 32 x 32 pixels is a good size for now, but make it whatever you want. If you already have an image you want to use you can click Load Sprite, but I’m going to make a new one. They can be animated, colorized, rotated, and scaled in game. Sprites are images used to represent game objects. What sort of images will we need? Let’s keep it simple – how about a ball and a brick (to build the container). When you start Game Maker, make sure you choose to load it in Advanced Mode. The game is over when all the balls escape.
The player gets a point for every time he or she clicks a ball, but every time a ball is clicked it explodes and changes direction and goes faster. Here’s the game we’ll make: how about a bunch of balls are bouncing around a container until they break the walls and can escape. You can get Game Maker here for PC or here for Mac. This tutorial will walk through making a basic game from scratch in Game Maker.