AnotherTail - Asset Developement 3.0.swf [ 209.3 KiB | Viewed 13709 times ]
package {
import flash.display.MovieClip;
import flash.geom.ColorTransform;
import flash.events.Event;
public class BaseBodySkin extends BaseBody { // Inherit BaseBody Class
public function BaseBodySkin() {
// constructor code
this.addEventListener(Event.ENTER_FRAME,onEnterFrame);
this.addEventListener(Event.ADDED_TO_STAGE,onEnterFrame);
}
protected override function onEnterFrame(event:Event):void{
thisCharacter = UpdateCharacterData(); // thisCharacter is defined in BaseBody Class
UpdateSkinColor();
gotoAndStop(1); // Play only first frame of movieclip... frames 2+ don't want color changing system... yet
}
private function UpdateSkinColor():void{
if(thisCharacter != null){
var colorTransform:ColorTransform = this.transform.colorTransform;
colorTransform.color = thisCharacter.skinColor;
this.transform.colorTransform = colorTransform;
}
}
}
}
AnotherTail - Asset Developement 3.0a.swf [ 300.18 KiB | Viewed 8131 times ]
FuzzFace Wrote:Whoa, customable! I’m certain this will play a big part in building your game. Very good job! One of the main tasks of a developer is to work smarter, not harder. I believe that this is certainly a step forward. I can see a lot of progress made with this tool.
Gregdgreat Wrote:Its a good idea but it will take awile, while the color of them dosent really matter, seeing as you probably wouldnt see a sharpclaw running around blue or anything, at most maybe a dark grey for an older or or variations of green, there isnt a huge point in point all those color schemes up, it makes it pretty but for the color of the people its alot of work for something i dont think alot of people will work on. However, if you made it into something that everyone can use on their characters, that might be useful, but thats off topic ;P
Users browsing this forum: No registered users