Jump to content
  • 0
KohakuSan

Change sprite layer colors on ActOR

Question

Is there any way to do that for the entire file instead of having to change every single frame's color?

 

I noticed that saving act as text could do this very easily just by replacing the color codes in the created .lua file but how can I convert it back to act then? Or is there some other way to do it?

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Yes, this can be done with ActOR.
 
Script(S) > Edit... > 

for AID = 0, GetNumAct() - 1 do    for FID = 0, GetNumFrame(AID) - 1 do        for PID = 0, GetNumPat(AID, FID) - 1 do            SetA(AID, FID, PID, 0x80);            SetB(AID, FID, PID, 0xff);            SetG(AID, FID, PID, 0xff);            SetR(AID, FID, PID, 0xff);        end;    end;end;

> Run.
 
 
With Act Editor : 
Scripts > Script Runner > 

act.SetColor("0x80ffffff");

> Run.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.