Interpolate actor off-screen?
Hi all,
I'm having some difficulty moving an actor which is not in the current view. I've got a scene setup, with a view at 480x320, following a main actor. That works fine, at one point in the game (random) I want another actor to move across the scene, the player may not be able to see that new actor at the point, but will see it move as it passes.
I'm using interpolate to do this, i can see the new actor visible and animating, but he seems to move along with the view, not to the fixed positions I've specified for him to move to?
Am I missing something here? As far as i'm concerned, if i tell an actor to interpolate between 2 different x/y positions it should just follow those coords, irrespective of where the view is?
Thanks
I'm having some difficulty moving an actor which is not in the current view. I've got a scene setup, with a view at 480x320, following a main actor. That works fine, at one point in the game (random) I want another actor to move across the scene, the player may not be able to see that new actor at the point, but will see it move as it passes.
I'm using interpolate to do this, i can see the new actor visible and animating, but he seems to move along with the view, not to the fixed positions I've specified for him to move to?
Am I missing something here? As far as i'm concerned, if i tell an actor to interpolate between 2 different x/y positions it should just follow those coords, irrespective of where the view is?
Thanks
Comments
Try the following;
Start with the said actor onscreen but edit its alpha so its invisible (0)
Then have a change attribute to change self.position to -100 (offscreen)
Then a rule that says when self.position = -100, change attribute self.alpha to 1 and interpolate across the screen as you were.