Author Topic: Offset question  (Read 3953 times)

MadMan

  • Posts: 96
  • Faggot Crusher.
    • View Profile
Offset question
« on: June 13, 2014, 08:43:10 PM »
So, how does the circle offset work?


in this example



   <collision static="true" shoot-through="true">
      <circle offset="40 1" radius="15" />

Myran

  • Developer
  • Posts: 183
    • View Profile
Re: Offset question
« Reply #1 on: June 13, 2014, 11:42:55 PM »
It's just where the center of the circle is. Use the physics rendering (F1 in editor) to tweak it.

MadMan

  • Posts: 96
  • Faggot Crusher.
    • View Profile
Re: Offset question
« Reply #2 on: June 14, 2014, 01:18:20 PM »
I probably should of provided mroe infomration. SO i have the values 40 and 1. HOw does it work, does 40 make it go up and -40 go down? and the next one goes left and right. I was messing around with it, and i can't seem to find a pattern.

MadMan

  • Posts: 96
  • Faggot Crusher.
    • View Profile
Re: Offset question
« Reply #3 on: June 14, 2014, 01:20:16 PM »
Oh yeah, and i used F1, it shows the collisions, how do i change them? And you left the mummys in the editor, if you werent meant to.

Myran

  • Developer
  • Posts: 183
    • View Profile
Re: Offset question
« Reply #4 on: June 14, 2014, 03:40:12 PM »
Ah, so it's two coordinates (in pixels), x and y. So "40 0" moves it 40 pixels to right, "0 40" moves it 40 pixels down, and then of course "-40 0" moves it to the left and "0 -40" moves it up.