Jump to content

Tiled ID issue


AramCP
 Share

Recommended Posts

I was setting the colissions for my game when something strange happened, my tile ID seems to be weird. Look at that:

map.setCollision(93, true, layer3);

As you can see i set collision in my tile with ID 93. I added some tiled screenshots:

http://prntscr.com/dbt5ar

http://prntscr.com/dbt5gj

Well, but i enter the game and it doesnt works.

http://prntscr.com/dbt4x8

maybe you think my code is wrong but its not that, look what happens when i try to walk to the left:

http://prntscr.com/dbt6fd

My door tile is ID 91, and i can colide with it, while i set the colission in tile 93. Its like it moves 2 tiles to the left.

 

Guys do yo know why is happening that? Thanks for reading.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...