game maker object create path

Game Maker: Create & Manage Paths

By Richard Taylor
AD

“Game Maker” is a renowned game engine that empowers developers to create stunning 2D and 3D games without an extensive programming background. Among its many powerful features, the ability to create paths for object movement stands out. Mastering this functionality opens up a world of creative potential for designing game environments and directing character behavior. Let's delve into the intricacies of creating paths in Game Maker.

Before we dive into the details, it's essential to understand that paths in Game Maker serve as waypoints or navigation trails for objects to follow. These paths can be linear or non-linear, straight or curvy, and can be utilized to control the movement of multiple objects simultaneously.

Defining Path Types

Game Maker offers several types of paths to facilitate diverse movement scenarios:

AD
a computer screen with an image of a pond, trees and rocks on the ground
a computer screen with an image of a pond, trees and rocks on the ground
Grass
Grass
Animated 3D cars
Animated 3D cars

  • Path_Point: A simple type consisting of a list of points defining the path.
  • Path_Smooth: A more complex type that uses Bézier curve interpolation to create smooth, organic paths.
  • Path_Poly: A polygon-based path, enabling the creation of enclosed areas for objects to navigate or avoid.

Game Button Pixel Art, Pixel Art Game Button, Pixel Art Game Buttons, Pixel Art Game Menu, Pixel Game Button, 2d Game Pixel Art, Button Sprites, Game Ui Button Design, Pixel Art Game Icons
Game Button Pixel Art, Pixel Art Game Button, Pixel Art Game Buttons, Pixel Art Game Menu, Pixel Game Button, 2d Game Pixel Art, Button Sprites, Game Ui Button Design, Pixel Art Game Icons
MITOH (@4ceNull) on X
MITOH (@4ceNull) on X
AHHHH ITS SO CUTE
AHHHH ITS SO CUTE

Linear Paths with Path_Point

For basic linear movement, Path_Point is the go-to choice. To create a path of this type:

AD
  1. Open the Create Event of the object in the Game Maker interface.
  2. Add the Create Path action and select the Path_Point option.
  3. Specify the points using the Add Point action and input the required coordinates (x, y).

the game maker 3 page is shown in this screenshote, it shows an image of
the game maker 3 page is shown in this screenshote, it shows an image of
an old - school computer game with a coffee machine and other items on the screen
an old - school computer game with a coffee machine and other items on the screen
Pixel Character Maker (Minigame) by SnowHex 🌱, Mr. Walkman
Pixel Character Maker (Minigame) by SnowHex 🌱, Mr. Walkman
a colorful game board with arrows pointing to the water in the park or river illustration
a colorful game board with arrows pointing to the water in the park or river illustration
an old computer game with lots of different items
an old computer game with lots of different items
Indivisible- Texture Polish/Concepts- Lead Environment Artist, Max Gon
Indivisible- Texture Polish/Concepts- Lead Environment Artist, Max Gon

Alternatively, you can import paths using external tools like PathNavigator or add points using the room editor's path creation features.

Smooth Paths with Path_Smooth

To generate more fluid motion, consider using Path_Smooth. The creation process is similar to Path_Point, but with additional settings for controlling curve tension:

AD

a bunch of different items are shown in this cartoon character's life style set
a bunch of different items are shown in this cartoon character's life style set
Building a Crafting Game, with GameMaker
Building a Crafting Game, with GameMaker
a black and white drawing of a maze
a black and white drawing of a maze
a bunch of different types of objects on a green surface with trees in the background
a bunch of different types of objects on a green surface with trees in the background
Avy's MV Stuff
Avy's MV Stuff
Tutorial - Mapping: Interior | The Official RPG Maker Blog
Tutorial - Mapping: Interior | The Official RPG Maker Blog
🪵 Tile Tree — Wooden Texture Tutorial
🪵 Tile Tree — Wooden Texture Tutorial
a bunch of different types of furniture and objects
a bunch of different types of furniture and objects
I will do rpg maker mv and mz maps using rtp
I will do rpg maker mv and mz maps using rtp
a bunch of different types of trees and buildings in pixel art style, with some clouds above them
a bunch of different types of trees and buildings in pixel art style, with some clouds above them
Ancient Druid Totem ➡️ High-Visibility Quest Object Design
Ancient Druid Totem ➡️ High-Visibility Quest Object Design
[點圖分享]這邊是我搜尋RPG maker找到的一些點圖wwww 大家可以拿去加工做寢室的布置~下收wwww另外若有看到不錯的也歡迎分享喔:)
[點圖分享]這邊是我搜尋RPG maker找到的一些點圖wwww 大家可以拿去加工做寢室的布置~下收wwww另外若有看到不錯的也歡迎分享喔:)
a bunch of different types of furniture in the shape of a cityscape with buildings and bridges
a bunch of different types of furniture in the shape of a cityscape with buildings and bridges
browser game: yume 2iki
browser game: yume 2iki
  1. Follow the same initial steps as with Path_Point.
  2. In the Add Point action, access the Advanced tab and set the Curve Tension value to adjust the smoothness of the curve.

Experiment with different tension values to achieve the desired effect, and use multiple points to create complex, continuous curves.

AD

Controlling Object Movement Along Paths

Once you've defined paths for your objects, you can control their movement along these trajectories with specialized actions:

Game Maker provides several built-in actions for moving objects along paths, such as:

  • Move Along Path: Moves an object towards the next point on its path at a specified speed.
  • Warp Along Path: Instantaneously teleports an object to the next point on its path. This action doesn't cover any distance, making it ideal for rapid resetting of object positions.
  • Rotate Towards Path: Orients an object to face the direction of its path, enabling objects to maintain a constant orientation during movement.

Moving Object Along Path

To move an object along its defined path, use the Move Along Path action:

  1. In the Create Event or any other desired event, add the Move Along Path action.
  2. Select the path you want the object to follow from the Path dropdown list.
  3. Set the desired Speed for the object's movement along the path (in pixels per step).

Adapt this action to suit your game's requirements, including looping, reversing, and reversing at the end of the path.

Rotating Object Towards Path

Ensure your objects maintain a constant facing direction during movement with the Rotate Towards Path action:

  1. Add the Rotate Towards Path action to your object, either in the Create Event or another relevant event.
  2. Select the desired Path for the object to face.
  3. Adjust the Relative and Wrap settings to control how the object's orientation changes in relation to its path.

Use this action in combination with Move Along Path to create realistic and engaging object navigation.

The journey of mastering Game Maker's path creation and object movement capabilities is a rewarding one. With practice and creativity, you'll develop the skills needed to craft intricate game environments and animate captivating character behaviors. Now that you have a solid foundation in Game Maker object path creation, go ahead and start crafting your gaming masterpiece!

AD