AnimationRunScript

From Adventure Game Studio | Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Download AnimationRunScript 1.0a Here


// ************* AGS MODULE: Animation Run Script *************
// 
//
// 	This module allows you to run a piece of script on specific frames
//	during an animation of a character or an object.
//
//	Example uses:
//		* Make a blinking light change the tint/light level of the player.
//		* Say you have a trap like rotating knives. You can check for contact
//			with the player and inflict damage/kill him.
//		* Play more than one sound on a specific frame of animation.
//
//	Usage: 
//		In game_start, insert calls to ars_AddCharacter (see below).
//		In "Enter Room (Before Fadein)", insert calls to ars_AddObject (see below).
//		Edit the ars_RunScript() function and put in your code.
//	
//
//	Written to address: http://www.bigbluecup.com/tracker.php?action=detail&id=455
//
// ------------------
//
// * Author: Janik Zikovsky (jzikovsky - at - hotmail.com)
//
// * Revision History
// 		2006-11-16 		v1.0 		Initial Release
// 		2006-11-16 		v1.0a 		License changed.
//
//