How to set value to "left" sucessfully

Get help using Construct 2

Post » Sun Jul 05, 2015 11:52 am

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?
B
12
S
2
Posts: 267
Reputation: 1,344

Post » Sun Jul 05, 2015 12:05 pm

You variable is a number, so it can't contain text. Set up your variable as string.
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 788
Reputation: 3,788

Post » Sun Jul 05, 2015 2:50 pm

mindfaQ wrote: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.
B
12
S
2
Posts: 267
Reputation: 1,344

Post » Sun Jul 05, 2015 3:21 pm

It must/should have also said to change the variable type to "Text" - the default is "Number". Which tutorial are you looking at?
ImageImageImage
B
71
S
22
G
240
Posts: 3,732
Reputation: 133,990

Post » Sun Jul 05, 2015 3:41 pm

blackhornet wrote: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!
B
12
S
2
Posts: 267
Reputation: 1,344


Return to How do I....?

Who is online

Users browsing this forum: Blendi1223, kellehk, TRMG and 30 guests