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
#2
very nice, glad to see u back Joke
Reply
#3
Isn't this already in the source?

I know you can open doors with the default mirage key and key open attribs.
Reply
#4
I think this was already included in MSE1... the difference was, that when you used the key it made the 'mask' layer disappear. I think what Joke is going for, is if you want to make something other than just Mask disappear (if you've added more layers, or if you want to use Fringe, that kind of thing)
Reply
#5
Oh, okay. I was a bit confused. ^_^
Reply
#6
Oops, my bad, didn't realize that the mask layer dissapeared xD. Well, guess this tut isn't that useful then, unless you want to change the layer lol.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)