Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Adding Mask3 / Fringe3


Vortigem
 Share

Recommended Posts

I've been searching for a tutorial but couldn't locate one. This was as far as I've gotten thus far:

Changed Server Side to:

```

Public Enum MapLayer

Ground = 1

Mask

Mask2

Mask3

Fringe

Fringe2

Fringe3

' Make sure Layer_Count is below everything else

Layer_Count

End Enum

```

Changed Client Side to:

```

Public Enum MapLayer

Ground = 1

Mask

Mask2

Mask3

Fringe

Fringe2

Fringe3

' Make sure Layer_Count is below everything else

Layer_Count

End Enum

```

Added new options buttons to Mask3 & Fringe3 to frmEditor_Map with optLayer.

What am I missing for this to function as intended?

***Edit*** Problem solved. See last post for resolution.
Link to comment
Share on other sites

You will definately need to edit where the map actually draws. Check the modgraphics (or modDirectDraw7) depending on your version. I.e. in EO 2.0.1 you have this sub

```

Public Sub BltMapTile

```

with this bit of code in it

```

For i = MapLayer.Ground To MapLayer.Mask2

```

That would need to be changed to draw mask3
Link to comment
Share on other sites

different tut but same idea of adding layers except this is for animation layers. look how there added for layer value part and maybe give an idea how you add the others. or search "layer" see wat pops up for "mask". heres animation layer tut [LINK](http://www.touchofdeathforums.com/community/index.php?/topic/129795-eo-23-animation-layers/)
Link to comment
Share on other sites

Hey thanks for the help guys! With your suggestions I was able to piece the remaining issues together. The problem came down to that I still needed to (all clientside):

```

For I = MapLayer.Ground To MapLayer.Mask2

```
to Mask3

As well as

```

For I = MapLayer.Fringe To MapLayer.Fringe2

```
to Fringe3

Additionally, after ensuring all buttons made in Mapeditor were named optLayer, I noticed the **Index** numbers didn't match to their respective changes.

Thanks again!
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...