Invisible block example

Invisible block example
This tutorial shows you how to disappearing blocks and re-appearing it again once they were near your player.

             First, open your block object editor. Make a create event, then execute this code.
             Second, make a step event, then execute this code.


Until next time,

Hiz


Read more ►

One directional platform example

One directional platform example
In this tutorial, i assume you already made platform engine and (obviously)has already set the collision with solid mechanism

      First, make two objects with same sprite, called jumpthru1 and jumpthru2. Set the jumpthru1 to solid and set it's parent to your solid object. While jumpthru2 just let it be (un-solid and without parent).
                  
      Second, open jumpthru1 object editor. Make a step event, then insert this code.
                Third, do the same in object jumpthru2. But do a little modififcations in it, like shown below.
                 Done! Now, if you can modify the 'if obj_player.y' to 'if obj_player.x' if you want to set it penertrable in horizontal direction.


Until next time,

Hiz




Read more ►

Rotating Room example

Rotating Room example
    This is a tutorial based on my very first game, Direction. Well, let's start!

           First, make two sprites, for solid (box) and the player (ball). Set the size to 16x16. Then make two objects, obj_player and obj_block. Don't forget to check "Solid" in obj_block properties.
             Second, open obj_player editor. Make 4 events; Create event, Collison with obj_block event, Left key event, and right key event. In Create event, execute a code like this.
              Third, in the collision with solid event, execute a code like this.
               Fourth, in the Left Key event, execute a code like this.
                And last, In the Right Key event, execute this code.
Done! Now all you have to do is open the room editor, and design your own levels.


Until next time,

Hiz




Read more ►
 

Copyright © Hiznopellagio