[Solved] Actor Color

tiger27tiger27 Member Posts: 127
edited April 2015 in Working with GS (PC)

I have an attribute titled "Image", and two actors that are set up like this:

(Actor 1)
If touch is pressed
change attribute Image to Blue

(Actor 2)
If attribute Image is Blue
change image to BlueActor1

But, for some reason, it keeps chaning the color of the actor instead of the image, making the entire actor turn black. I've done the same with pink and it lightens the entire actor (presumably because it makes the actor pink). Does anyone think they have an answer to this?

«1

Comments

  • SocksSocks London, UK.Member Posts: 12,822
    edited April 2015

    The problem will undoubtedly be caused by the way you have your rules set up.

  • tiger27tiger27 Member Posts: 127
    edited April 2015

    What am I doing wrong?

  • SocksSocks London, UK.Member Posts: 12,822
    edited April 2015

    @tiger27 said:
    What am I doing wrong?

    Like I say, issues in GameSalad are almost always a result of the way you have your rules set up (a faulty equation, a behaviour in the wrong place, an attribute typed instead of selected from the drop down, a decimal point in the wrong place . . . etc etc), so without anyone being able to see the rules that make up your project it's pretty much impossible to say.

  • tiger27tiger27 Member Posts: 127
    edited April 2015

    @Socks The weird thing is, I did the exact same thing on a new, blank project and it worked! But, my actual game, still has the problem.

  • SocksSocks London, UK.Member Posts: 12,822

    @tiger27 said:
    Socks The weird thing is, I did the exact same thing on a new, blank project and it worked! But, my actual game, still has the problem.

    Which only supports the idea that the way you have your rules set up (or something within those rules) is causing the issue, if you upload a screenshot of the offending rule I'm sure someone will be able to figure out the issue.

  • tiger27tiger27 Member Posts: 127

    Here, I'm a little hesitant about screenshoting my game, so I'll show you what the rules are.

    When All of the following are happening
    If actor 1 touch is pressed
    
    set game.CustomColor to Blue
    
    When All of the following are happening
    attribute is Blue
    
    Set self.image to BlueActor2
    

    That's excactly what it is, word for word. Hope that helps.

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    Is game.CustomColor a text attribute? And is there an image file called BlueActor2.png? And are you using Creator on a PC? You didn't create an attribute named self.image, did you? I assume you're using the built-in self.Image attribute.

    What happens when you Display Text self.Image and click on actor 1? Do you see "BlueActor2" or something else?

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

  • tiger27tiger27 Member Posts: 127

    1: Yes,
    2: Yes,
    3: Yes,
    4: No,
    5: Yes,
    6: and I'll try that out.

    I'll get back to you ASAP.

  • tiger27tiger27 Member Posts: 127
    edited April 2015

    @tatiang So, it displays that it changes to BlueActor2.

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    I'm guessing this is some sort of PC Creator bug because I've never experienced this.

    You may have already seen this but it addresses common issues: http://forums.gamesalad.com/discussion/59247/windows-creator-first-stop-if-you-experience-unexpected-behaviours#latest.

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

  • tiger27tiger27 Member Posts: 127

    @tatiang Love the article, but my bug is still not fixed. I believe I am using version 0.11, but I'm not entirely sure. Do you think I shoul report it to Gamesalad?

  • SocksSocks London, UK.Member Posts: 12,822

    @tiger27 said:
    That's excactly what it is, word for word. Hope that helps.

    A screenshot of the actual rules would be more useful, people can make mistakes without noticing them when they transcribe.

  • tiger27tiger27 Member Posts: 127

    @Socks I just don't want to screenshot or file share since my game's almost done. I just don't think it's a good idea. There are people who can probably code much faster than me. Sorry Socks.

  • SocksSocks London, UK.Member Posts: 12,822

    @tiger27 said:
    Socks I just don't want to screenshot or file share since my game's almost done. I just don't think it's a good idea.

    You are already showing us what the rules are doing, why can't we see a screenshot of those actual rules ? No one is asking to see your game or your artwork or all your other rules and behaviours and so on, just the rules you've already typed out ?

  • tiger27tiger27 Member Posts: 127
    edited April 2015

    Sorry, But this is from my main actor, so it would end up showing stuff that I don't want anyone seeing. Plus you could get a glimpse of my actors and attributes by accident.

  • SocksSocks London, UK.Member Posts: 12,822
    edited April 2015

    @tiger27 said:
    Sorry, But this is from my main actor, so it would end up showing stuff that I don't want anyone seeing.

    I was asking you to take a screenshot of just the rules you are trying to fix, absolutely nothing else, just those two rules.

  • tiger27tiger27 Member Posts: 127
    edited April 2015

    Please stop asking. I told you, I'm sorry but no.

  • SocksSocks London, UK.Member Posts: 12,822

    @tiger27 said:
    Please stop asking. I told you, I'm sorry but no.

    Lol, no problem ! I think you misunderstood what I was asking for, but of course I can't force you to take a screenshot ! :smile: But I simply can't see how taking a screenshot of two rules you have already shared would be an issue, anyhow no big deal, good luck with sorting this out.

  • tiger27tiger27 Member Posts: 127

    @Socks I over reacted. But I'm having trouble putting in a screenshot. Can you give me instructions?

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    @tiger27 To add a screenshot, upload it to a file-sharing site and then post/embed the link here (Pro members can directly embed files without the need to use a third-party site).

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

  • tiger27tiger27 Member Posts: 127

    @tatiang or @Socks Do you know any free, reliable, secure file saving sites?

  • tiger27tiger27 Member Posts: 127

    @Socks I just realized that my actor's image may be overlaying for some reason. I still need to find a good file sharing site.

  • SummationSummation Member, PRO Posts: 476

    @tiger27 If you have a gmail account you can put it in your Google Drive and set the share permissions on it. What I do sometimes is put a project there, make it sharable, get the sharable link, then post the link in a private message if I'm concerned about others seeing it.

  • tiger27tiger27 Member Posts: 127

    @Summation Thanks! I'll do that soon.

  • tiger27tiger27 Member Posts: 127

    @tatiang or @Socks or @Summation I realized that my actor's images are overlaying for some reason. Does anyone know how to fix this?

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    @tiger27 said:
    tatiang or Socks or Summation I realized that my actor's images are overlaying for some reason. Does anyone know how to fix this?

    I don't know what that means. Are the actors in positions where their widths or heights would overlap? Is the problem that you can see through to the image below or that you can't?

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

  • tiger27tiger27 Member Posts: 127

    @tatiang My actors seem to, when being told to become a dark image version of itself, such as blue, it seems to turn dark, in this case dark navy blue. When I do the same with something such as pink, it turns really bright. It's either that it's images are overlapping or that the color of the actor is being affected, rather than the image.

  • SocksSocks London, UK.Member Posts: 12,822

    @tiger27 said:
    tatiang or Socks or Summation I realized that my actor's images are overlaying for some reason. Does anyone know how to fix this?

    I'll just echo what tatiang says above, I also don't know what "actor's images are overlaying" means ?

  • AlchimiaStudiosAlchimiaStudios Member Posts: 1,069

    Do you have a blending mode turned on, on the actors? Are you changing the actors color via the actors attributes?

    Follow us: Twitter - Website

  • tiger27tiger27 Member Posts: 127
    edited April 2015

    @Socks and @tatiang It means basically that there's one image and another image. Somehow one goes over the other causing a weird color of the actor. A simple explanation:

Sign In or Register to comment.