Match Colour Background

I`m trying to match the background colour with my last actor... but i cannot include introducing rgb values or using magnifiying glass and selecting the last zone of my actor on scene.
What can i do?

Comments

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598

    Hi @mrpacogp

    Roughly, the following: for each actor that has the possibility to have its colour copied: 3 self attributes each (real). Set the value of these to the values of the particualr actor's R, G & B.

    An scene attribute (integer) called ActorAmount, its value set to the amount of actor that starts off actually in the scene.

    In any actor that's spawned, in its rules, add Change Attribute ActorAmount to ActorAmount +1

    Just before an actor is destroyed, put Change Attribute ActorAmount to ActorAmount -1

    Add a rule to all actors that can be on screen:

    When ActorAmount = 1
    Change Attribute Scene.Color.Red to self.ActorR
    Change Attribute Scene.Color.Blue to self.ActorB
    Change Attribute Scene.Color.Green to self.ActorG

    Something along those lines.... hope it helps.

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

  • mrpacogpmrpacogp Member Posts: 400
    edited January 2013
    Sorry, apologize about my english.
    I dont want that.
    I say my last actor, referring to last actor more near to sky, i use one actor for make more cool the sky, but for save memory, only to the middle of sky, upper i want to use same background color for scene, but never take the same rgb, include using values hex
    And thank you very much for answer my question.
    I just have take one image, put on it on inkscape, take values from rob scale, go to gamecreator, put the same values on background color but when you preview on gamesalad, the colours feel identical but on real device or xcode simulator dont.
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited January 2013

    Hi, no apology needed about your english! With English as your second language, I think you write very well.

    Having said that, now I'm not totally sure what you're after... would it be possible to upload a game file for us to look at?

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

  • mrpacogpmrpacogp Member Posts: 400
    Well, i`m about to turn me crazy.
    I tested on xcode and real device, and, iphone 4 and ipad respect my background colour.

    I tested on xcode iphone 5 and the bakcground is difference!!!! I dont have a real i5 for test it...

    sky photo Capturadepantalla2013-01-27alas175957_zps1324441f.png
  • SocksSocks London, UK.Member Posts: 12,822
    edited January 2013
    This sounds like the problem is with Xcode and not your GS project.

    You really need to test this on an iPhone5 to see if the problem is real.


    . . . . . . . . .

    Also, take a little more time making your question clear to help people understand, in your title and your first post you do not mention iPhone5 or Xcode anywhere - but after a couple of replies you tell us that the problem is only with the Xcode iPhone5 emulator !

    . . . . . . . . .


    Also, why don't you just get rid of the sky in your image, make it invisible - and only have a cloud - then there is no need to match the background colour of the scene to the background colour of the sky actor ?
  • mrpacogpmrpacogp Member Posts: 400
    Thank you very much you too.
    I also no mentioned iphone 5 before because i have see after a few minuts.
    Apologize about my english. What i need is to study more, when i finish that maybe.
    I have called a friend with iphone 5, i answer what is happened in about 1 hour.
    Thank you all.
  • SocksSocks London, UK.Member Posts: 12,822
    edited January 2013
    I have called a friend with iphone 5, i answer what is happened in about 1 hour.
    :)>-
    Apologize about my english
    Keep it simple !

    This is hard to understand:

    Hey guys, Sorry, apologize about my english. I dont want that. I say my last actor, referring to last actor more near to sky, i use one actor for make more cool the sky, but for save memory, only to the middle of sky, upper i want to use same background color for scene, but never take the same rgb, include using values hex. And thank you very much for answer my question. I just have take one image, put on it on inkscape, take values from rob scale, go to gamecreator, put the same values on background color but when you preview on gamesalad, the colours feel identical but on real device or xcode simulator dont.


    This is easy to understand:

    1) I want the background colour of my scene to be the same as the background colour of my actor.

    2) I copy the RGB values of the actor (in inkscape) to GameSalad and they look identical in GameSalad and on my iPad/iPhone. :)

    3) But the colours do not match when I view them on the Xcode iPhone5 simulator ? :(

  • mrpacogpmrpacogp Member Posts: 400
    Thank you Socks!

    Well, i can confirm that.
    My background colour of scene is respected on ipad and iphone 3gs,4 and 4s, but not on iphone 5
    Iphone real and xcode have difference tone of colour, maybe is for the technology of the retina 4"
  • goliathgoliath Member Posts: 1,440
    edited January 2013
    @mrpacogp When you press the color for the background, try looking for the magnifying glass and click on the desired color....







    I made a quick video for you (no sound but I am sure you will figure it out with this)...Let me know.
  • mrpacogpmrpacogp Member Posts: 400
    @goliath, thank you very much for your video.
    Now test it on Xcode iPhone 4 and 5
    You get same result on real device, tested yesterday by me.
Sign In or Register to comment.