How to set value to "left" sucessfully

  • Okay so i need to make the action set value and then write in "left". But when i click on done afterwards it says Invalid Value `left` For value. You cannot set a string to number variable `action` use int() or float() around the expression to convert.

    I have tried to follow the instruction that pops up but whitout success. I have put in many other things in the text but it just turns into a syntex error instead. Can anybody help me how to sucessfully out in "left" in set value?

  • You variable is a number, so it can't contain text. Set up your variable as string.

  • You variable is a number, so it can't contain text. Set up your variable as string.

    Okay so what is a string then? I am following a tutorial and it says to set value "left" not 6. If i am supposed to write left whit numbers what i should i write then? It do work whit numbers like -10 but that.s not what i am supposed to write according to the tutorial. It should be left somehow.

  • It must/should have also said to change the variable type to "Text" - the default is "Number". Which tutorial are you looking at?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • It must/should have also said to change the variable type to "Text" - the default is "Number". Which tutorial are you looking at?

    I changed to text and now works. Thanks for your help!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)