08-04-2007, 12:05 PM
Hi there
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 :
and replace it with :
And there you go, it's done and should be 100% working
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

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

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