@lucid I'm starting to work on randomized clothes for the NPC's in my game. I would like to be able to randomly pick colors or at the very least say pick a random number between 1 and 10, if 8, tint the sprite this color.

So far, I can randomly tint each sprite in my Spriter Object by itself. Where I'm having trouble is when I want each sprite to reference a particular object in the same container for the information. In a previous post you showed me how to have a box in the Spriter object and assign the platformer behavior to it. Then I just move the Spriter Object to that box and pin it.

What I want to have happen is the box has all of the variables for the different colors and are randomly picked on creation. Then Each Sprite in my Spriter Object will look to the box for its variables and change their tints accordingly. I'm having trouble with them referencing the box.

My Solution BelowThe Rate Of Color Change Can Be Adjusted By Adding More Time On to the System Every 2.5 Condition.Increasing The Value Will Slow Down Speed And Decreasing Will Speed Up The Rate Of Change

Last edited by JAYSTILLA on Thu Jul 16, 2015 4:06 pm, edited 1 time in total.

Thanks @jaystilla but what I need is a way to tell 4 out of 10 sprites in a container to change their effect parameters to match a 5th sprite in the same group of 10. I have it working now with everything being set when it is spawned, but I wouldn't mind a way to say say look at sprite: box in the same container as you.

winsonzhong wrote:@lucid Yes, that's it. I want to be able to set starting opacity in the properties pane~I mean I set the spriter object fade in with lite tween plugin,and I need to set opactiy "0" In the beginning,

sman118 wrote:What I want to have happen is the box has all of the variables for the different colors and are randomly picked on creation. Then Each Sprite in my Spriter Object will look to the box for its variables and change their tints accordingly. I'm having trouble with them referencing the box.

@sman118, For that you could add the playerbox sprite to the container. Then when you refer to playerbox.myVariable it will automatically associate with the correct playerbox. Here's an example with opacity retrieved from the private variable 'startingOpacity' in 'PlayerSprite':

Spriter Pro let's you try out an early prototype version of our future warping features (this video has a brief overview of how to test it: https://youtu.be/V0ehOfGP5XY?t=383). We don't recommend starting a major project with warping just yet, as the final version of the feature will be expanded and enhanced, and projects using the current version of the feature might not be compatible with the final version. Also, because the current version will be replaced with a better version, we can't invest any time in support if you happen upon any bugs or issues with this prototype version of warping. Here's an example of what one user was able to create with the prototype feature: http://brashmonkey.com/forum/index.php? ... tes/page-2

It will eventually be fully supported in both Spriter and the C2 plugin, but in the meantime, you can export animations using the current deform feature to sequential pngs and import them as regular sprites in C2, if you just want to try it out.