02-18-2023, 03:01 PM
(This post was last modified: 02-18-2023, 03:07 PM by DerVVulfman.)
(02-18-2023, 08:23 AM)icogil Wrote: I wanted to make a sprite that follows a character like a visual equipment script without size restrictions, so I made the script below while studying and putting together several scripts for the past few days.
Your statement is a bit... mixed up, sounding like a visual equipment script forces characters to follow the player. It doesn't.
A script known as a caterpillar (or party follow) script is one that has party members following the player. And visual equipment (or paperdoll) is a system that applies sprites upon the player. The two are actually quite different.
* There are a variety of both types in the forum.
We have a demo by a scripter named Rataime that includes 'both'. Below is the link:
Rataime's Visual Scripts: Visual Equipment
I would recommend downloading the demo itself. (I doublechecked the link.... right click to get to the box.com screen for the demo. Then click Download at the top-right.). The demo not only includes Rataime's Visual Equipment script which is the oldest and simplest I've seen. But it includes a caterpillar script with the name "Train Actor" by fukuyama, also the oldest one that existed. Both work fine together. And the demo has other features including sprite reflections for mirror effects and shadow creation.
And neither system required editing of the Z-axis.
In the demo, you will find I performed some edits... to give the end user (like you) more flexibility.
In the Train Actor script by Fukuyama, it mattered not the size of the sprite. I replaced the third party member with a larger skeleton shown here. But if I were to apply items to the skeleton, the gear would need to be the same size as the skeleton's sprite. That is possible, but would require an edit of the visual equipment to recognize WHO gets the armor or weapon.