Passing a sprite (or reference to) to a Function

Get help using Construct 2

Post » Sat Nov 29, 2014 7:39 pm

Hi there, i am making a kind of quiz game based on textboxes, and need to pass the textBox as a parameter to a function in order to assign the same css styles to every textBox, and also add the same functionality to each when the answer is correct. I can repeat the code for every textBox object, but rather using functions. However, i tried the solution explained above and it doesn´t works fine (i created an aux textBox outside of the layout, assigned the instance passed by parameters with UID, and made changes to that aux textBox).
Could you please help me? thank you!
B
11
S
2
Posts: 12
Reputation: 974

Post » Sat Nov 29, 2014 9:52 pm

post a capx please
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596

Post » Sun Nov 30, 2014 1:51 am

Here you are...
you can find the original code disabled, and the function i am trying to make
thank you!
You do not have the required permissions to view the files attached to this post.
B
11
S
2
Posts: 12
Reputation: 974

Post » Sun Nov 30, 2014 1:54 am

Hey Hey people sorry for hijacking the post but can someone help me too :/ -https://www.scirra.com/forum/viewtopic.php?f=178&t=120073
B
3
S
1
Posts: 8
Reputation: 343

Previous

Return to How do I....?

Who is online

Users browsing this forum: brunopalermo and 28 guests