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

Help with autotiles system


Aurelijus1
 Share

Recommended Posts

Maybe anyone have autotiles system tutorial ? I tryed copy it from other engine now i'am getting this error Method or Member Data Not Found on this line:

```
Public Sub CalculateAutotile(ByVal x As Long, ByVal y As Long, ByVal layerNum As Long)

   ' Right, so we've split the tile block in to an easy to remember
   ' collection of letters. We now need to do the calculations to find
   ' out which little lettered block needs to be rendered. We do this
   ' by reading the surrounding tiles to check for matches.

   ' First we check to make sure an autotile situation is actually there.
   ' Then we calculate exactly which situation has arisen.
   ' The situations are "inner", "outer", "horizontal", "vertical" and "fill".

   ' Exit out if we don't have an auatotile
   If map.Tile(x, y).Autotile(layerNum) = 0 Then Exit Sub
```
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...