Jump to content
Sign in to follow this  
malonkey1

"Palette Swap" script

Recommended Posts

Hey guys. I'm making a project, and one thing I wanted was to be able to do a sort of "palette swap" when entering a map, not unlike in Pokemon Yellow. All the art assets I'm using are grayscale, what I'm looking for is a script that I can call to change the grays to a color/set of colors (e.g. "Green", "Red", #0FFA88, etc.) until called again to change it back. I would just use the Tint command in the event, but I can't seem to jigger the tint controls to get the right look. How difficult would this be?

Edited by malonkey1

Share this post


Link to post
Share on other sites

would it not be just as easy to use a couple colored tile sets and use the tint screen option to grayscale the whole set to the way you want it to? and just swap tilesets here and there?

Share this post


Link to post
Share on other sites

would it not be just as easy to use a couple colored tile sets and use the tint screen option to grayscale the whole set to the way you want it to? and just swap tilesets here and there?

In most circumstances, yes, but like I said, the idea is to replicate the color changes as they are in the early Pokemon games, where you step from one connected map to the other, and the color changes instantly.

Share this post


Link to post
Share on other sites

Then you can just use the different colored tilesets for each different map and just use the gray scale effect for maps in black and white.

Edited by XIX

Share this post


Link to post
Share on other sites

Perhaps you could supplement that with a script which changed the player's character graphic depending on the current tileset. That way the colours will always match (otherwise you'd have grayscale player graphics on a coloured background)

The script could also affect events, but those could still changed manually

/Kai ♫

Share this post


Link to post
Share on other sites

I do not think you are getting what I mean. The maps are connected at an edge, without a transition, and upon crossing from one to the other, I want to change the colors of everything on-screen.

 

So when I step from here at the bottom edge of this map:

17908507834_f18fff787e_m.jpg

 

into the top edge of this other, directly connected one, you can see the color palette has changed.

17910520303_ea8ebfe2ee_m.jpg

Share this post


Link to post
Share on other sites

It sounds like you should use some "on player touch" event walls anywhere that a map "border"is located

Using that you can then have it change the tileset based off of which direction your character is facing.

Edited by Ersatzteil
  • Like 1

Share this post


Link to post
Share on other sites

Perhaps you could parallax the maps and simply change parallax upon player touch?

Share this post


Link to post
Share on other sites

I don't really want to make a bunch of different copies of a single tileset, but I guess that's the best I'm getting. I found a script that can recolor bitmaps, but I don't know how to use it with a tileset:

 

http://forums.rpgmakerweb.com/index.php?/topic/4038-coperns-bitmap-color-functions/

 

If it's possible to use this with the tileset, I think it will do what I need, but again, I'm sure how to work it.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted