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




 

Copyright © Hiznopellagio