GameSalad

First Game Project - Colour Issue

Ben+%3A%29Ben :) Posts: 8Member
edited October 8 in Working with GS (PC)

Hello GS community!

I am currently creating my first game - the premise of which is to change your character's colour in order to pass through walls.

However, I have run into a problem.

I can only change the characters colour to red, green or blue.

To do this, I use a 'change attribute' set.color.blue, set.color.red or set.color.green - and change its value to 1 or 0.

So, here is my question:

How do I change my characters colour to the ones I want (in this case, orange, yellow and pink).

Thanks for reading! If any of you have any suggestions, please write them in a noob friendly format - this is my first ever time using Game Salad! :)

Comments

  • tatiangtatiang Posts: 10,969Member, Sous Chef, PRO, Senior Sous-Chef
    edited October 8

    You can use color values between 0 and 1. So any of these will also work:

    0
    0.1
    30/255 -- this is typically what I use because it mirrors online values that are easy to find for "pink," "orange", etc.
    200/9999
    1

    http://htmlcolorcodes.com/

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • Ben+%3A%29Ben :) Posts: 8Member

    @tatiang said:
    You can use color values between 0 and 1. So any of these will also work:

    0
    0.1
    30/255 -- this is typically what I use because it mirrors online values that are easy to find for "pink," "orange", etc.
    200/9999
    1

    http://htmlcolorcodes.com/

    Thanks so much, this worked perfectly :)

Sign In or Register to comment.