Examples
All of the below examples are an easy way to learn to do something. Simply open them up and see how it all works. This is a great way to learn new tricks for your own projects. Most of these come in a zip folder so you will need to extract the files before opening them.
-------------------------------Total Examples (6) -------------------------------
Name: The Basics
Version: 1
Size: 35.58kb
Download: .gm6
This is an example of some really basic codes. It covers move-tword-mouse movement, enemy follow-if-player-is-close movement, shooting/creation of bullets, and drawing the bullet amount on screen.
Name: Basic Platform Movement
Version: 1
Size: 13.5kb
Download: .gmk
This is a perfect no-bull example for how to do a basic platform game. You can move left or right if no solid blocks are blocking you, and you can jump. Gravity pulls you back to solid ground like normal.
Name: Improved Platform Movement
Version: 2
Size: 21.0kb
Download: .gmk
Version 2 is a bit more advanced. It has sprite changing for left/right, falling left/right, and jumping left/right. It also has variable jumping so you can jump a little with a quick press, or higher with a longer press. I also added spikes which push u into the air if you touch them.
Name: Grid-Snap Movement
Version: 1
Size: 10.35kb
Download: .gm6
This is from my pokemon game. It shows you how to create perfect grid-snapped movement for the player. It features a touch of lag time so you can press an arrow key to look in a direction without actually taking a step. Please don't steal my custom character though.
Name: Overhead view
Version: 1
Size: 8.78kb
Download: .gm6
This example shows movement for an overhead view game. Also has some simple AI that follows the player and even trys to go around corners a bit if he loses sight of the player. Basic bullets are also done.
Name: D&D Inventory
Version: 2
Size: 8.4kb
Download: .gm6
My own personal creation! This is an inventory using draggable objects for the items. No complicated drawing or listing of any kind. You can even make other boxes (inventory slots) that only accept certain kinds of items with a few changes to things. This has transparent backgrounds for the items but you can have solid colors if you think it's easier to pickup or it looks better.
Name: Selection screen
Version: 1
Size: 2.3kb
Download: .gm6
This is the very basics for making a selection then having something change accordingly. Best used for character selection. This uses 1 sprite and each character is 1 subimage.
Version: 2
Size: 2.41kb
Download: .gm6
Same as the above but this one uses different sprites for the different characters. Slightly more complicated but more likely to help you with your game.
| | | | | |
|