![]() |
What are my options?
Here's what I'm trying to accomplish; I'm working with Sage to create a vehicle that is fully customizable, so far everything looks great. There's only one problem. I'm wondering what my options are when it comes to displaying the car for others to see. As of now, we have the car setup to display from this.attr[2]. I'm just not sure how to go about getting the actual body of the car to change color other than using COLOREFFECT in the gani; which would require me to make multiple ganis for each color. Any ideas or thoughts would be helpful. Thanks.
|
Generate car images or ganis as needed.
My GANI manipulation class works pretty well: http://forums.graalonline.com/forums...hp?t=134261809 |
I probably would have created an image for each player similar to personal heads/bodies and save it like 'era_personalcar-ACCOUNT.png'
|
Ya, slap dat ***** into a drawingpanel and render it all night long.
|
Using different graphics for different colors would be best I think. On Era (iPhone) only a single graphic is used which is then rotated by gani.
|
Quote:
Basically a way for me to change the r/g/b of attr[2].. Jerrets way may be the only option though. |
Quote:
|
Quote:
|
Well what I meant by separate sprites is have different color image parts for each, which is what I think Stefan was suggesting essentially. That way the player could choose a color, and you would just have to edit the gani via script to replace the red sprite for the door with the blue sprite for the door. Unless you want a variety of different shades of r/g/b, having a graphics person make a few different shades of each color may be a plausible method.
Other than that, Jer's is probably the best method. I was typing that you could just set an overlay attribute to the NPC, but I'm not so sure how well that would work as it's the animation itself you're wanting to edit. |
Quote:
|
I think some are missing the point in which Tim is trying to explain,
Say we have a white car sprite. We would like to make that car any color on the RGB table. One option could be customizing with a color picker UI... Multiple sprites is obvious and what is already in use, but it's limiting on the customization aspect. Also, who wants to make 100 sprites for colored cars.. |
You can change the colors (RGBA) of a sprite in a GANI from inside the GANI script, similar to the way you do rotation. If memory serves, just use findImage(sprite_idx).red/green/blue from inside the script.
edit: look at Chris/car on Era, I threw together a proof-of-concept with color changing |
Quote:
In the end with this method you can allow as many customized sprites as you want and still only end up with one single image file for the car. |
Quote:
http://www.promoboxx.com/blog/wp-con..._you_know.jpeg |
Quote:
|
| All times are GMT +2. The time now is 04:53 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.