Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Key Open / Key Tile : Make Door Dissapear While Open
#1
Hi there Big Grin This is a really easy tutorial, but I figured it'd be helpful for those that wanted this feature. Basically what it does is, when you have a key tile, instead of just saying 'You have unlocked a door', it will "open" the door (take off the Fringe/Fringe 2 tile) and show the message

So there are 2 versions, there both really easy and only require one bit of code.

The first version is for the original set of layers.

What you do is just, in the modGameLogic, in the sub bltFringeTile, look for the line :

Code:
Fringe = Map.Tile(x, y).Fringe

and replace it with :

Code:
If TempTile(x, y).DoorOpen = 1 Then
        Fringe = 0
    Else
        Fringe = Map.Tile(x, y).Fringe
    end if

And there you go, it's done and should be 100% working Smile

The first version is for the extra layers, which will use Fringe 2 + Fringe 2 Animatiion.

What you do is just, in the modGameLogic, in the sub bltFringeTile, look for the line :

[code] If (MapAnim = 0) Or (F2Anim
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)