[NOT SOLVED] Problem with local variable.

Just started using Construct 2? Post your questions here

Post » Sat Dec 12, 2015 10:59 am

Hello, I have a local variable that set to 10, then, an event that checks if this variable is greater than 0 but this event not seems to be true even though the variable "actCronometro" worth 10.
The player never is destroyed.

Perhaps this order of events may seem stupid but ... I think it should work.

I do not understand that I'm doing wrong, can anyone help me ?.

Image

Image
B
31
S
13
G
21
Posts: 843
Reputation: 14,691

Post » Sat Dec 12, 2015 12:17 pm

I'm not sure if you are even setting the variable..

I don't really understand the actions: first you send signal, then you wait for signal..

Also the event will ofcourse only run if all of the above conditions are true.
Are you sure this is the case?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sat Dec 12, 2015 2:00 pm

Sure, the variable is a local variable HOST group.

HOST connects -> ok.
The signal is sent and it is true.
The variable is set to 10.

But the event is never true.

Anyway I already solved but perhaps it could be a bug.
B
31
S
13
G
21
Posts: 843
Reputation: 14,691


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest