Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: SilverSpook on Fri 12/06/2015 22:20:44

Title: Game Slows Down When Character Scaled Down?
Post by: SilverSpook on Fri 12/06/2015 22:20:44
I have an area where the character scales from max scaling level of 50 to min scaling level of 20, with continuous scaling.  When the character goes about halfway up the screen, the game suddenly starts to drag at about 1/2 normal speed.  It's basically like slow motion?  Is this a problem caused by scaling the character too small, or is there something that can be done to help with the slow down?  It seems to be just when the character scales down very small.
Title: Re: Game Slows Down When Character Scaled Down?
Post by: Snarky on Fri 12/06/2015 22:22:14
In what way does the game "slow down"? What is it that is going slower?
Title: Re: Game Slows Down When Character Scaled Down?
Post by: SilverSpook on Fri 12/06/2015 22:37:33
It's like everything is literally going in slow-motion.  So if it takes the guy 2 seconds to walk across the street, it suddenly takes him 4 seconds.  The frame rate also appears to drop.  This just suddenly occurs when you go above about halfway up the screen.  So it isn't a progressive slowdown from bottom to top; the game is running normally, then suddenly jumps into slow motion. 
Title: Re: Game Slows Down When Character Scaled Down?
Post by: Khris on Sun 14/06/2015 12:08:46
Character scaling also affects the character's speed (as it should), so it's supposed to go slower.

In game_start, call Debug(4, 1); to turn on the FPS display. Then check again if the game actually slows down.
Title: Re: Game Slows Down When Character Scaled Down?
Post by: SilverSpook on Sun 14/06/2015 21:45:15
Hm, yeah it does appear to have to do with the character speed scaling.  Weird how the game appears to slow down... Perhaps it's due to the scrolling of the camera becoming choppy when the player's movement speed drops?
Title: Re: Game Slows Down When Character Scaled Down?
Post by: Crimson Wizard on Mon 15/06/2015 10:50:10
Try disabling "AdjustSpeedWithScaling" character property (if its on).
Title: Re: Game Slows Down When Character Scaled Down?
Post by: SilverSpook on Tue 16/06/2015 00:11:35
Yeah when I turned that off the slow down issue resolved.  The character in that scene moves way too fast though without adjustspeedwithscaling, because the view is more aerial, pulled back from the character.
Title: Re: Game Slows Down When Character Scaled Down?
Post by: Khris on Tue 16/06/2015 00:23:00
If the character's speed goes down, viewport scrolling can get pretty choppy. You might want to look into the SmoothScrolling module.
Title: Re: Game Slows Down When Character Scaled Down?
Post by: SilverSpook on Tue 16/06/2015 03:47:39
Ok, thanks for the tip Khris.