Sunday, December 21, 2008

Behaviours

Although a few variables in an object structure determine how an object behaves (e.g., if it can be climbed like a tree) it is the behaviour scripts that really make an object come to life. The behaviour scripts are a list of instructions that place certain values in the object's variables and also calls functions that do a lot of the hard work.
These behaviour scripts, along with the graphic ID (with the exception of some behaviours that do not require a graphic ID) are used to create an object. They are also the values to be used with yoshielectron's spawn code. These values remain the same between the different versions of the game since they are used to calculate the actual addresses of the data needed for spawning objects. by yoshielectron

No comments:

Post a Comment