SSH Productions: Module documentation for slowmove.zip

Module: Slow movement 1.1, by SSH

Functions to move a character or object very slowly

Download Slow movement as a zip file

Author

Andrew MacCormack (SSH)

Please use the PM function on the AGS forums to contact

me about problems with this module

Abstract

Allows characters or objects to be moved very slowly

Dependencies

AGS 2.71beta5 or later

Functions

slowmove.obj(Object *o, int x, int y, int delay, optional BlockingStyle)

Moves an object from current position to x,y with delay

game cycles between each pixel moved

slowmove.cha(Character *c, int x, int y, int delay, optional BlockingStyle)

Moves a character from current position to x,y with delay

game cycles between each pixel moved

Configuration

This module uses an internal array, which limits the number of

things that can be moved at once. The default size of this array

is 10. This can be varied by cahnging the value of MAX_SLOWMOVES

in the module script header.

Caveats

No animation or anti-glide mode: this must be done by user

ignores walkable areas

Revision History

Jun 04: First used in FOY demo

23 Jun 04: posted code on AGS forums

20 Sep 05: v1.0 Reworked for AGS 2.7 and released as standalone module

v1.01 fixed all those bugs that Strazer pointed out!

21 Sep 05: v1.1 Added optional blocking argument

Licence

Slow movement AGS script module

Copyright (C) 2005 Andrew MacCormack

This library is free software; you can redistribute it and/or

modify it under the terms of the GNU Lesser General Public

License as published by the Free Software Foundation; either

version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,

but WITHOUT ANY WARRANTY; without even the implied warranty of

MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU

Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public

License along with this library; if not, write to the Free Software

Foundation, Inc, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

In addition to the licences mentioned in the modules themselves, you may choose to use the following creative commons licence if you prefer for all AGS modules and open source code resources on my site.

Creative Commons License
This work is licenced under a Creative Commons Licence.