Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Tonic Ink on Tue 01/12/2009 08:25:44

Title: Smooth Object movement
Post by: Tonic Ink on Tue 01/12/2009 08:25:44
Hi Guys,

Just a quickie, I have a couple of clouds (as objects) moving across the back of my background.

No mater what speed I set, they just seem to move very 'rigid'. Almost as though they're moving at a rate of approx 5 pixels at a time.

Is this a limitation of the engine or is there a trick somewhere that I'm unaware of.

Cheers :D

EDIT: Another question while I'm here, whenever I close my game using the windows/X when testing the game she crashes and I have to alt-ctrl-delete. This usual?
Title: Re: Smooth Object movement
Post by: Gilbert on Tue 01/12/2009 08:43:59
What code did you use for moving the clouds? Did you use Object.Move()?
In that case try lowering the speed and see if it makes a difference.
Alternatively, you can modify the coordinates of an object in repeatedly_execute_always() for that.


Crashes aren't usual. Are there any error codes displayed when you click X? Try posting the codes here.
Title: Re: Smooth Object movement
Post by: Wonkyth on Wed 02/12/2009 07:09:00
The rigid movement is caused by having anti-glide mode on.
If you turned the clouds into character, then you can set this mode just for the cloud.
You might be able to do this with objects as well, but I'm not at home, and don't have a copy of AGS to check.  ;)