boblishman wrote:GPNMilano wrote:For the record, sprites can now also be done using alcscript. The correct script for this sprite being:
which sprite ? ... (there are 2 in this thread) ... is this for the original sprite at the begining of the thread .... or the "simple lamp flare" discusses later on ?
I was referring to the sprite in the topic name, as that is the topic at hand. The imager sprite's like those scene in the pubs. For the simple lamp flare sprite the alcscript would be:
- Code: Select all
ObjectName:
visual:
sprite:
flags:
- facecam
- pivotface
Alternatively, Cyan also used the maxbounds flag on a few normal sprites. I don't see a discernible visual difference when using it though on a normal sprite.
The "Imager" type of sprite is known as a billboard. And this covers a wide range of sprites not just Imager types. While a "Sprite" in itself is a general term for any sprite that doesn't fall into the above category of Billboards. Another Oddity of the Cyan naming convention when naming the plasma objects exported by their plugin. If you look at places like Bevin and the City you'll find that the two types of sprites are seperated by different names. Billboards and Sprite and then a number after each that coincides with whatever number was given to that particular sprite.
The flags for sprites, that can be set in alcscript are :
- Code: Select all
pivotface
pivotfavory
pivoty
pivottumble
scale
facecam
facelist
faceplay
faceobj
offset
offsetlocal
maxbounds
The majority of these flags are never used in even Cyan ages. The most heavily used are facecam, pivoty, pivotface, pivotfavory and maxbounds.
Following is my own speculation and interpretation of how the flags work:The face flags probably deal with the how the sprite faces something, in all cases it faces the camera (at least in cyan ages), so we use the "facecam" flag. The pivot flags dealing with how the sprite pivots as it moves with the camera. pivotface is that it pivots along the object center of the sprite, always facing the camera if that flag is set. pivoty meaning that it pivots along the y axis specifically. pivotfavory is that it pivots similar to a pivotface, but it usually favors the y axis. As for the rest: absolutely no clue.