Smooth Object movement

Started by Tonic Ink, Tue 01/12/2009 08:25:44

Previous topic - Next topic

Tonic Ink

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?

Gilbert

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.

Wonkyth

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.  ;)
"But with a ninja on your face, you live longer!"

SMF spam blocked by CleanTalk