Interpolate inconsistencies
inception
Member Posts: 74
Hey all. I'm rather new to the scene and am looking for help on this small problem.
I have some very simple code that Interpolates the self.position.y of the actor to +10 when clicked. After 3 seconds, a second rule does the reverse (-10 from its position). Interpolate durations are the same, and both are linear.
The problem is that it will go up, wait, then drop back, but it will not always do so in the same way. Sometimes it will go up and down to the same original position fine, but then on the 3rd or 4th click, drop an extra 3-4 pixels. I just cannot figure it out, it's a brand new project, and nothing could possibly be telling it to randomly change positon.
Any help would be appreciated.
I have some very simple code that Interpolates the self.position.y of the actor to +10 when clicked. After 3 seconds, a second rule does the reverse (-10 from its position). Interpolate durations are the same, and both are linear.
The problem is that it will go up, wait, then drop back, but it will not always do so in the same way. Sometimes it will go up and down to the same original position fine, but then on the 3rd or 4th click, drop an extra 3-4 pixels. I just cannot figure it out, it's a brand new project, and nothing could possibly be telling it to randomly change positon.
Any help would be appreciated.
Comments
self.position.Y = 100
Interpolate self.Position.Y to 200
otherwise
self.position.Y = 200
Interpolate self.Position.Y to 100
Make sure you actor is in either the Y 100 or 200 position in your scene.
Darren.
I'm having issues tiling actors. Trying to create a scrolling background and there is always a gap between actors, varying in size, and this shouldn't happen. Anyway around this?
Thanks very much in advance.
Darren.
Thanks for your help and anyone else that may be reading this.
Chris
I appreciate your example, but unfortunately I need it to be based on the current position+/- an amount, rather than a fixed location.
It must clearly be a bug, because it is such a random occurrence. It might return to the correct position 4 times before going off, or sometimes only once.
Darren.
Hope it helps,
Darren.
It still remains, however, that clearly there is an underling problem with the behaviour based on the situation in my original post. Hopefully it will be fixed in a future release.
Thanks again.