Interpolate actor off-screen?

pixel_knightspixel_knights Member Posts: 50
edited November -1 in Working with GS (Mac)
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

Comments

  • pixel_knightspixel_knights Member Posts: 50
    Anyone? I've tried MoveTo, but same effect, seems to move the actor whenever the view moves no matter if i pick relative to actor or scene.
  • beefy_clyrobeefy_clyro Member Posts: 5,394
    I've noticed this with a few actors before, when they start off screen they don't register.

    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.
Sign In or Register to comment.