Screen hiccup when teleporting

TigroTigro Member Posts: 32

I'm creating an adventure game in which there are some portals (simple sprites which, when collided with and pressed space, change your X and Y to the other portal's) which teleport you from one place to the other. Weirdly, the ones that are close to the edge of the screen behave OK and you just go from one place to the other while the ones in the middle give the screen a weird hiccup so that for that fraction of a second when teleporting from one to the other, camera goes to the far right edge of the screen and in the next frame comes back.

Is it somehow connected to the fact that my player is controlling the camera and so the fact that its position changes from one frame to the other causes some undefined behaviour? But even if so, why does it show the far right of the screen and, as a consequence, the teleports on the right hand side don't cause such trouble. How could I solve it?

Comments

  • TigroTigro Member Posts: 32

    No ideas? :(

  • SocksSocks London, UK.Member Posts: 12,822

    @Tigro said:
    No ideas? :(

    It's impossible to guess a solution (and it only would be a guess) without knowing how any of this is achieved . . .

  • robertkdalerobertkdale USAMember Posts: 912
    edited June 2015

    @Tigro can you upload the GS game file? @Socks is right. Without seeing any of the code it's nearly impossible to find a solution. As it could simply be flawed game logic.

    Big Smile Games Play Happy!
    Check out our other GameSalad exclusives.

  • TigroTigro Member Posts: 32

    It suddenly stopped happening after updating to the newest release... No idea why but since it does - problem solved, thank you both :)

Sign In or Register to comment.