Camera stops following actor after game is unpaused..
ToastedUnicorn
Member Posts: 35
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
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
-
MobileRocketGames Posts: 128well, 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
I still cant get the camera to continue follow the actor after scenechange WITHOUT having the " shaky actor in the middle "
Thanx anyway for posting an answer, maybe it will help someone else in the future