Text before game.score in display text [Solved]

evertevert Member Posts: 266
edited December 2016 in Working with GS (Mac)

Hi maybe another silly question,
but how do i set a text before my game.score attribute in the display text?
If i do this: my score game.score it will say invalid expression, if i only do game.score it gives me my games score.

Thanks

Comments

  • IceboxIcebox Member Posts: 1,485

    Either type it this way in the expression editor which will put more space

    or create a text attribute with space only and then do this

    Dont know about other methods

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273

    You need to include your quotes and concatenate it with the attribute. It should look like this in the expression editor:

    "My"..self.sp.."score"..sp..game.score

    self.sp is a self text attribute that includes a space.

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273

    @Icebox said:
    Either type it this way in the expression editor which will put more space

    or create a text attribute with space only and then do this

    Dont know about other methods

    You beat me to it! Nicely done! :D

  • evertevert Member Posts: 266

    @Icebox @Braydon_SFX Thanks! Awsome!
    works perfect with the import font feature i was waiting for for so long! :)

  • SocksSocks London, UK.Member Posts: 12,822
    edited December 2016

    @Icebox said:
    Either type it this way in the expression editor which will put more space

    @Braydon_SFX said:
    You need to include your quotes and concatenate it with the attribute. It should look like this in the expression editor:

    "My"..self.sp.."score"..sp..game.score

    self.sp is a self text attribute that includes a space.

    Can't you simply stick a space (option+space) onto the end of the text ?

    Like this "My Score "..game.score

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273

    @Socks said:

    @Icebox said:
    Either type it this way in the expression editor which will put more space

    @Braydon_SFX said:
    You need to include your quotes and concatenate it with the attribute. It should look like this in the expression editor:

    "My"..self.sp.."score"..sp..game.score

    self.sp is a self text attribute that includes a space.

    Can't you simply stick a space (option+space) onto the end of the text ?

    Like this "My "..attribute ?

    That's another way to do it, I had just forgotten if it was cmd+space or alt+space. :P

  • IceboxIcebox Member Posts: 1,485

    @Socks said:
    Can't you simply stick a space (option+space) onto the end of the text ?

    Like this "My Score "..game.score

    It doesnt work here , it switches the input language on my mac

  • SocksSocks London, UK.Member Posts: 12,822
    edited December 2016

    @Icebox said:

    @Socks said:
    Can't you simply stick a space (option+space) onto the end of the text ?

    Like this "My Score "..game.score

    It doesnt work here , it switches the input language on my mac

    Are you using alt+space ?

    If you are using alt+space and it still changes the input language then simply change your change-input-language shortcut to something else, or even switch it off entirely (who needs to change their input language on a regular basis anyhow !?)

  • HopscotchHopscotch Member, PRO Posts: 2,782

    @Socks, people who correspond in multiple languages do this many many times a day. :)

  • IceboxIcebox Member Posts: 1,485
    edited December 2016

    @Socks Oh now it works thanks !
    Edit: I had both cmd + space and alt+ space to switch language

    (who needs to change their input language on a regular basis anyhow !?)

    I barely use english compared to the other language so thats why i need it :)

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

    @Hopscotch said:
    @Socks, people who correspond in multiple languages do this many many times a day. :)

    Everyone should speak in English and stop all this nonsense immediately.

    @Icebox said:
    @Socks Oh now it works thanks !
    Edit: I had both cmd + space and alt+ space to switch language

    (who needs to change their input language on a regular basis anyhow !?)

    I barely use english compared to the other language so thats why i need it :)

    You should stick to English, all other languages are weird, I can hardly understand most of them.

  • BigDaveBigDave Member Posts: 2,239

    @Socks
    coming form a country(switzerland) were I always struggled to understand the purpose of our isolated little language. I totaly agree. English is the only viable language option.
    But it will be hard to convert russia and asia

  • ArmellineArmelline Member, PRO Posts: 5,420

    @BigDave, just be glad you're not a Waorani, whose language has no known links to any other language on earth.

  • SocksSocks London, UK.Member Posts: 12,822
    edited December 2016

    @BigDave said:
    @Socks
    coming form a country(switzerland) were I always struggled to understand the purpose of our isolated little language.

    Switzerland is obvioulsy a language mess, how many languages do you have over there, something like four or five ? You all need to stop misbehaving and use English like all the normal countries.

    @BigDave said:
    I totaly agree. English is the only viable language option.
    But it will be hard to convert russia and asia

    They just need to ask themselves would they prefer to use English or a foreign language, the answer is obvioulsy English,

  • IceboxIcebox Member Posts: 1,485

    @Socks Your english and (few other members) is hard to pick up for me especially when you explain things or joke around, used to take me ages to understand what your saying :p

  • ToqueToque Member Posts: 1,188

    @Icebox said:
    @Socks Your english and (few other members) is hard to pick up for me especially when you explain things or joke around, used to take me ages to understand what your saying :p

    English is a terrible language especially for spelling. They should revamp it, fix it. English 2.0.

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

    @Icebox said:
    @Socks Your english and (few other members) is hard to pick up for me especially when you explain things or joke around, used to take me ages to understand what your saying :p

    That's why you need to abandon your foreign language and do the sensible thing.

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

    @Toque said:
    English is a terrible language especially for spelling.

    That's all the fault of the Americans, here in the UK we spell everything correctly.

  • HopscotchHopscotch Member, PRO Posts: 2,782
    edited December 2016

    @Socks

    English is just a niche modern dialect, more nuisance than a fad, and should be weeded out. Just switch to a decent solid language and avoid further embarrassment.

    :D

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    @Socks said:

    That's all the fault of the Americans, here in the UK we spell everything correctly.

    Color with a U?! Really? ;)

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

    @jamie_c said:

    @Socks said:

    That's all the fault of the Americans, here in the UK we spell everything correctly.

    Color with a U?! Really? ;)

    Of corse.

  • HopscotchHopscotch Member, PRO Posts: 2,782

    @Socks Your version of the graph doesn't even hold up in the greater London area, let alone the UK. :) You need to get out more!

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

    @Socks said:

    @Toque said:
    English is a terrible language especially for spelling.

    That's all the fault of the Americans, here in the UK we spelle everything courrectly.

    Do you, now?

  • ToqueToque Member Posts: 1,188

    @Socks said:

    @Toque said:
    English is a terrible language especially for spelling.

    That's all the fault of the Americans, here in the UK we spell everything correctly.

    English neads two bee fixt

  • evertevert Member Posts: 266

    this is topic is getting out of hand :open_mouth:

Sign In or Register to comment.