Camera stops following actor after game is unpaused..

Hey guys !

I have my main room in my sidescroller with my actor that controlls the camera,
It worked before when i added a Timer with " Every 0 second" but when i used it my actor got all shaky and the background graphics also had this problem.

When not using the Timer no images shake but the problem is, when i go into a room, i have pause/unpause game, when i unpause the game the camera stops following my actor :C

help please :(

Best Answer

  • MobileRocketGamesMobileRocketGames Posts: 128
    edited November 2012 Accepted Answer
    well, this is obviously a very poor solution, and I hope i won't be remembered for giving bad advice. But the easiest solution is to set your timer to every 1 or even 2 or 3 seconds. The reason everything goes wonky when its set to 0 is because, seriously, 0? A computer can't even compute that. Thats like setting it to do something every .01 seconds, then multipliying the speed of that calculation by 1000, and then again by 1000. its not possible to repeat something every 0 seconds, that would just be an ongoing repetition that would fire off as fast as the CPU can process it.

    So yes, you are going to get some lag.

Answers

  • Yax_IncYax_Inc Member Posts: 14
    Check that your background is not movable
  • ToastedUnicornToastedUnicorn Member Posts: 35
    Did not work :/ it was allready nto moveable.

    I still cant get the camera to continue follow the actor after scenechange WITHOUT having the " shaky actor in the middle " :/
  • ToastedUnicornToastedUnicorn Member Posts: 35
    But if i set it to 1 if will follow the player every 1 second? D:. and i fixed the problem before, sorry i havent answered but it was something with the background :)

    Thanx anyway for posting an answer, maybe it will help someone else in the future :)
Sign In or Register to comment.