Quantcast
Channel: tIDE (Tilemap Integrated Development Environment)
Viewing all articles
Browse latest Browse all 173

New Post: Help with collision

$
0
0
I have this error tile index out of bound
I use this code
  public bool getCollision(Vector2 posf,Layer Collision,int TileIndex,float scale, vars v)
        {

            tileLocation = new Location((int)((int)posf.X / 8*3 ), (int)posf.Y / 8*3);
                t = Collision.Tiles[tileLocation];
            //    if (t.TileIndex == 0)
              //      return true;

                return false;
        
           
what is the error?

Viewing all articles
Browse latest Browse all 173

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>