How I create a Instance Variable <Varies>

Get help using Construct 2

Post » Wed Aug 14, 2013 8:39 pm

Hello, I want to know how I create a numeric family with a instance Variable like a <varies>,?

I have a exemple with this instance Variable, but I can't replace...
When I make a new virtual keyboard and put <varies> the C2 replace the <varies> to "0".

In my family I have ten numbers(0...9), and each number have one instance variable.

thanks so much!

B
10
S
2
G
2
Posts: 81
Reputation: 1,757

Post » Wed Aug 14, 2013 9:15 pm

I'm not sure to understand your issue.
The "<varies>" appears when you have several instances of the same object type and the instances have different values for their instance variable.

You can't put the value "<varies>" to a numeric variable, since it is not the correct type (you're trying to put some text where numbers are expected).

By default an instance variable can vary, so that's not something you have to put in.

Perhaps explain in a clearer way what you're trying to do, and possibly post a capx of where you're at to makes things easier to understand.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
284
S
109
G
91
Posts: 7,317
Reputation: 87,483

Post » Wed Aug 14, 2013 9:34 pm

Well, I try to create a virtual Keyboard, I have a .capx but I dont Know how I post here.

I have in my project a famili and in this familie have ten numbers, each number have one instance Variable, but in my .capx that I have like a exemple, the famili have a Instance Variable call "keyNumbers", Type: numeric and initial Value= <varies>

I would like to send my capx.

thanks!
B
10
S
2
G
2
Posts: 81
Reputation: 1,757

Post » Wed Aug 14, 2013 9:36 pm

In this link exist a capx. like a my project!
but without a families!
B
10
S
2
G
2
Posts: 81
Reputation: 1,757

Post » Thu Aug 15, 2013 4:11 pm

sorry, is Family!
B
10
S
2
G
2
Posts: 81
Reputation: 1,757

Post » Thu Aug 15, 2013 7:03 pm

I did it!
thanks so much!

B
10
S
2
G
2
Posts: 81
Reputation: 1,757


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 13 guests