Change an actors colour to completely white when attribute changed

ZombiebrainsZombiebrains www.zombiebrains.co.ukMember, PRO Posts: 296
edited February 2012 in Working with GS (Mac)
Hello

I was wondering if anyone knew how to change an actors image to completely white when an attribute is checked.
I haver a star field and when an attribute called 'Hyper' is selected the stars all stretch out but stay their original colour.

How can I get it so that say, a purple star changes completely white.
I've see then RGB thing but it looks like you can only change a actor RED, GREEN Or Blue using a combination of turning each one off>
I've tried using 255/255/255 in the output box but nothing

Any ideas

Thanks guys

It takes a Zombie to know a Zombie!!!

Comments

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited February 2012
    HI ZB, the R,G and B attributes in GSC are in the scale of 0 to 1 (i'd far prefer it it be the normal 0 to 255 as well!) so change each colour to 1 will bring the image back to its original colour. :-)

    ----------------------------------------------
    http://davidgriffinapps.co.uk/

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • ZombiebrainsZombiebrains www.zombiebrains.co.ukMember, PRO Posts: 296
    edited February 2012
    Hi Gyro

    So we can't change the colour of a actor completely white using attributes?

    So how would I get my star to change white from its original colour (Purple) using the RGB 0/1 method?

    It takes a Zombie to know a Zombie!!!

  • MotherHooseMotherHoose Member Posts: 2,456
    Colors in GS are 0 to 1 (and any decimal in between EX: 0.555555) … as they are real values they can be decimals

    RGB 0 is black or no color over the alpha channel's black
    RGB 1 is white or full color over the alpha channel's black
    images are R=1, G=1, B=1 as they are full color

    the closest you can get to white is 0.99999999
    better to start with a white star and change its color RGB till you get the purple you want …
    then easier to changeAttributes red; green; blue To: 1 … to have it white again.

    @};- MH
  • GLGAMESGLGAMES SingaporeMember Posts: 988
    Why not make a white color star and display that as self image when hyper is true?
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited February 2012
    Sure you can, ZB, sorry I didn't explain myself fully: either change the Attributes in the Actor Edit page - Red to 1, Green to 1 and Blue to 1; or via the Change Attribute behaviour: Change Actor 1.Color.Red to 1, Green to 1 and Blue to 1.

    But... if you mean get rid of the image completely and just have white, you'll need to make a completely white image, same size, and use a Change Image attribute.

    Edit: beaten by MH and GLG!

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • GLGAMESGLGAMES SingaporeMember Posts: 988
    You could also use alpha to 0 if you just want it disappear..
  • ZombiebrainsZombiebrains www.zombiebrains.co.ukMember, PRO Posts: 296
    cool, that worked a treat!

    Thanks Gyro and all you other guys for helping me in the right direction...changing RED to 1, GREEN to 1 and BLUE to 1 worked!

    :)

    It takes a Zombie to know a Zombie!!!

  • ZombiebrainsZombiebrains www.zombiebrains.co.ukMember, PRO Posts: 296
    Thanks GL...will bear that in mind if needed somewhere else in my app, sure I will! :)

    It takes a Zombie to know a Zombie!!!

  • ZombiebrainsZombiebrains www.zombiebrains.co.ukMember, PRO Posts: 296
    It's so simple when you know these things..I just didn't know RED TO 1, GREEN TO 1 and BLUE TO 1 would make it white...result!

    It takes a Zombie to know a Zombie!!!

  • MotherHooseMotherHoose Member Posts: 2,456
    edited February 2012
    oh @gyroscope … so enjoyed that 2 on 1 S&M scenario! =))

    Was it good for you?
    ===

    but, only need the white image (not 2 images) … you can change an image's color in GS …
    and you can click on the actor's/scene's colorBox … use the RGB sliders option rather than crayons… to set RGB 0-255 values.

    @};- MH
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited February 2012
    "oh @gyroscope … so enjoyed that 2 on 1 S&M scenario! =)) "

    Ha, sure was good for me too, MH, I'm positively glowing! =)) Still wonder who was S and who was M tho'... ;-)

    Good one about the colorBox, I forgot to mention that. :-)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

Sign In or Register to comment.