| Mirage Source http://web.miragesource.net/forums/ |
|
| Key Open / Key Tile : Make Door Dissapear While Open http://web.miragesource.net/forums/viewtopic.php?f=210&t=1621 |
Page 1 of 1 |
| Author: | JokeofWeek [ Sun Apr 08, 2007 12:05 pm ] |
| Post subject: | Key Open / Key Tile : Make Door Dissapear While Open |
Hi there 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 <= 0) Then Now, add the following above it : Code: If TempTile(x, y).DoorOpen = 1 Then
Fringe2 = 0 F2Anim = 0 End If And there you go |
|
| Author: | Boo [ Mon Apr 09, 2007 12:28 am ] |
| Post subject: | |
very nice, glad to see u back Joke |
|
| Author: | Matt [ Mon Apr 09, 2007 1:01 am ] |
| Post subject: | |
Isn't this already in the source? I know you can open doors with the default mirage key and key open attribs. |
|
| Author: | Obsidian [ Mon Apr 09, 2007 1:39 am ] |
| Post subject: | |
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) |
|
| Author: | Matt [ Mon Apr 09, 2007 1:40 am ] |
| Post subject: | |
Oh, okay. I was a bit confused. ^_^ |
|
| Author: | JokeofWeek [ Mon Apr 09, 2007 6:53 pm ] |
| Post subject: | |
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. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|