Mouse click changing values not working?

Just started using Construct 2? Post your questions here

Post » Mon Jun 13, 2016 2:52 am

Wanted to start off by saying Hello! I have intermediate level knowledge on Construct 2 and have just recently begun my first full game. :D
This is a potentially stupid question since I am currently sleep deprived and burnt out on working on coding all day...

Anyway, I am working on the basic menu system and had wanted a mouse click to change the graphics settings. However using this event sheet:
Image

(if the image doesn't load the imgur code is 4dDB5VQ)

It doesn't change the variable or the text, though it does play the sound effect "Mouse".

Also for context the text object is "GRAPHICS: HIGH" at launch.

Any help would be awesome and greatly appreciated.

Thanks,
-Z
B
6
Posts: 2
Reputation: 254

Post » Mon Jun 13, 2016 7:53 am

Looks like you need an OR for the two events, because if the 1st event is true, it changes the value of 'GRAPHICS' which then makes the second event true.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
131
S
29
G
81
Posts: 5,328
Reputation: 56,630

Post » Mon Jun 13, 2016 3:57 pm

if it can be only 1 or 0, an else would be a better choice.
B
33
S
18
G
27
Posts: 2,447
Reputation: 20,358

Post » Mon Jun 13, 2016 5:39 pm

99Instances2Go wrote:if it can be only 1 or 0, an else would be a better choice.


Thanks so much! Worked great. :D
B
6
Posts: 2
Reputation: 254


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests