GameMaker Studio 2
Icon

PRO - Grid movement on click

gnysek

Buy for $0.99
Contact Publisher

Description

In this example I'm showing how to use mp_grid in GameMaker, create a path from it, display this path as points, and move on click, like for example in Heroes III game. Fully commented code.

In version 2.6.0:

  • fixed a bug, when enabled limit of moves per turn, that first step wasn't substracted
  • extended that on end of turn you need to click message to refill movements limit (limit_autoreload = true will work as in 2.5.0)
  • displaying percentage bar of movements left if limit per turn is enabled
  • first release for GMS2.x

In version 2.5.0:

  • you can choose between creating movement path on click, or on every mouse movement
  • all code with enabling/disabling features is moved to demo object, so importing non-demo named objects will give you working game without ability to change things in runtime like in this demo
  • when changing smooth path to true/false, a path is drawn for a second like with debugging turned on, to see difference

In version 2.2.0:

  • you can switch between smooth animating of player movement, or aligning to grid (jumping)

In version 2.1.0:

  • better graphics
  • you can change that path should be diagonal or straight
  • you chan change that path is smooth or not
  • you can limit number of moves
  • you can set limit of number of moves between 3 and 10
  • you can display debug path
  • you can do all above when running game without changing any line of code!
  • when you arrive to city, it name will display

In version 1.0

  • it was identical to lite version

CLICK TO SEE DEMO

Version 1.0 is now available as free: CLICK HERE FOR LITE VERSION

Tested on HTML5 and Windows versions.

More info

End User Licence Agreement (EULA).

Changes in 2.6.1

2.6.1 [hotfix]:

  • fixed a bug for HTML5 exports

2.6.0:

  • fixed a bug, when enabled limit of moves per turn, that first step wasn't substracted
  • extended that on end of turn you need to click message to refill movements limit (limit_autoreload = true will work as in 2.5.0)
  • displaying percentage bar of movements left if limit per turn is enabled
  • [optional] first release for GMS2.x

Version 2.6.1. Published May 25, 2017

Created with GameMaker: Studio v1.4.1763

Age Rating: 4+

Average Rating

This asset hasn't received enough reviews yet.

Your review

You can only review assets you've bought.


Gravatar

Dave B 12 July 2016

Effective

It works as intended.
Very good asset.
Author responded right away when I needed help and even wrote some codes for me.

This review was left for a previous version of this asset.

What is the issue?

Back to Top