GameMaker Studio 2

Fake Z Axis - Scripts Demo!

Lewis Clark

Contact Publisher


PLEASE NOTE: This demo file was created using GameMaker: Studio 2, though all of the code can be utilised for GameMaker: Studio projects.

Requires intermediate knowledge of GML

With the Fake Z Axis - Scripts Demo, you can see how to add a fake 3D effect to your games and projects! This effect works best when used in a game with a semi-top-down perspective.

This pack includes a working project room, set up to demonstrate the Fake Z Axis effect, as well as some scripts that you can use in your own projects to duplicate the effect.

The scripts included can:

  • Initialise objects to use the Fake Z Axis system.

  • Detect collisions between the new 'floor' and 'ceiling' of the game room.

  • Detect collisions between objects that use the Fake Z Axis system.

  • Handle the drawing of sprites and scaled shadows to complete the effect!

All scripts are thoroughly commented so that they are easy to understand, use and tweak as you please!

If you have any suggestions for improvements to this pack or if you need any help with the scripts, please don't hesitate to get in touch!

Thank you!

End User Licence Agreement (EULA).

Version 1.0.1. Published April 13, 2017

Age Rating: 4+

Average Rating

Your review

You can only review assets you've bought.


Anonymous 12 October 2018


Vinicius G 03 March 2018

Very well documented

As someone who has been struggling to develop engines with collisions on z axis as side projects for a couple years now, I already knew most of what would be used in this demo, but I was still surprised by the clear and logical organization of this example. The z_instance_place script alone is a simple and perfect tool which should be considered an essential function and deserves to be widely known or built-into GML by default, congratulations really. I know a number of younger indie devs busting their heads to grasp z collisions and movement. This would certainly teach them in a much easier way than my not so clear explanations on the matter, and I am sure to point them this way whenever the situation arises.

From what I have experimented, I think the only limitation on the asset is the fact that it seems to not be able to handle multiple collisions at once, such as stacking a few z moving balls or boxes on top of each other, which I admit is a very tricky task unfit for beginners.


Lewis Clark (Publisher) 05 September 2018

Thank you for the kind review!

Package contents

Loading, please wait

What is the issue?

Back to Top