Jump to content


Photo

collision_line not symmetrical


  • Please log in to reply
2 replies to this topic

#1 Markolainen

Markolainen

    GMC Member

  • New Member
  • 426 posts

Posted 29 April 2012 - 11:08 AM

Update:
Since I didn't get the desired results with the fix ChaosMaker gave me in my game engine I thought I might try making square tiles which are 15x15 in size (so checks are always made from the exact center).
This didn't work either and some tiles are visible while the same tile but at the opposite x or y direction from the player is not.
Am I missing something or is the collision_line in GM a bit broken in this way?

Here is the example as well as code:
Spoiler

Example

Is there a good replacement for collision_line or does anybody have any other suggestions?

Old post:
Spoiler

Edited by Markolainen, 29 April 2012 - 01:34 PM.

  • 0

#2 ChaosMaker

ChaosMaker

    GMC Member

  • GMC Member
  • 288 posts
  • Version:GM:HTML5

Posted 29 April 2012 - 11:51 AM

solved

collision_line.gmk





  • 0

#3 Markolainen

Markolainen

    GMC Member

  • New Member
  • 426 posts

Posted 29 April 2012 - 12:27 PM

solved

collision_line.gmk

Thanks!

I think it just felt natural changing both the y1 and the y2 but apparently I was wrong.
I still have issues with the horizontal & vertical tiles not being symmetrical but that's harder getting around without making invisible square blocks and check collision lines with them.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users