Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualBUnzaga

Posted 04 May 2013 - 09:09 PM

Hey thank you for the reply Paradigm Shifter.  Yes I wanted a similar effect, such as in Asteroids, only I don't need it to show the remaining ship as it wraps.  Just a simple...

 if > screen width, put back to 0.  The problem is that due to the interpolation, you can actually SEE the re-positioning, rather than it just appearing instantly on the other side.

 

In my fixed update, it just checks...

 

if arrowPos.x > screen width, set it to 0.  If arrowPos.x < 0 set it to screen width.

 

I am new to using an interpolation such as this, so I haven't had to deal with this sort of behavior before.

 

When the ship gets to the screen width, do I set ALL of them to 0?  Current Position, Previous Position, and Rendered(interpolated) Position?


#2BUnzaga

Posted 04 May 2013 - 09:08 PM

Hey thank you for the reply Paradigm Shifter.  Yes I wanted a similar effect, such as in Asteroids, only I don't need it to show the remaining ship as it wraps.  Just a simple...

 if > screen width, put back to 0.  The problem is that due to the interpolation, you can actually SEE the re-positioning, rather than it just appearing instantly on the other side.

 

In my fixed update, it just checks...

 

if arrowPos.x > screen width, set it to 0.  If arrowPos.x < 0 set it to screen width.

 

I am new to using an interpolation such as this, so I haven't had to deal with this sort of behavior before.

 

When the ship gets to the screen width, do I set ALL of them to 0?  Current Position, Previous Position, and Rendered Position?


#1BUnzaga

Posted 04 May 2013 - 09:08 PM

Hey thank you for the reply Paradigm Shifter.  Yes I wanted a similar effect, such as in Asteroids, only I don't need it to show the remaining ship as it wraps.  Just a simple...

 if > screen width, put back to 0.  The problem is that due to the interpolation, you can actually SEE the re-positioning, rather than it just appearing instantly on the other side.

 

In my fixed update, it just checks...

 

if arrowPos.x > screen width, set it to 0.  If arrowPos.x < 0 set it to screen width.

 

I am new to using an interpolation such as this, so I haven't had to deal with this sort of behavior before.

 

When the ship gets to 800, do I set ALL of them to 0?  Current Position, Previous Position, and Rendered Position?


PARTNERS