How do I pass strings to a function

Get help using Construct 2

Post » Tue Mar 31, 2015 9:24 pm

I have a little problem with functions. I have a Baloon with some text in a function and i want to pass text to it through function.param
I tried many times, with simple text "" and also with a global text variable, just to try, but it never works. The collected param will always be a 0

I also have a part of the game where one of the params is a number that will be added to score (1 or -1) and even in this case it does not work... but the strange thing is that it was working before, it simply stopped working in the last month....
I think that i'm missing something about function.param part! :)
B
6
S
1
Posts: 59
Reputation: 537

Post » Wed Apr 01, 2015 12:00 pm

Try reading this, it may help find where your issue is: https://www.scirra.com/manual/19/actions-conditions-and-expressions

If nothing else it bumps your question back to the front page...
B
40
S
8
G
3
Posts: 546
Reputation: 5,085

Post » Thu Apr 02, 2015 9:09 am

I found another post in the forum and discovered th origin of the issue. It's the "wait" used in the function that causes the problem. After the wait every function.param will loose it's values
B
6
S
1
Posts: 59
Reputation: 537

Post » Tue Jan 05, 2016 3:16 am

@pcprice76 just out of curiosity, what did you end up doing to remedy this?
B
64
S
16
G
9
Posts: 371
Reputation: 8,696

Post » Sun Jan 22, 2017 11:20 am

mudmask wrote:@pcprice76 just out of curiosity, what did you end up doing to remedy this?

Sorry if never rplied to you! I just see now your question! :(
I had a baby and completely abandoned every project till now...
B
6
S
1
Posts: 59
Reputation: 537


Return to How do I....?

Who is online

Users browsing this forum: imothep85, wtomtom and 2 guests