How do I toggle objects depending on a variable.

Get help using Construct 2

Post » Tue Apr 01, 2014 1:38 pm

Past link in your URL bar to see working file
WORKING LINK: db.tt/orWXAduW

I am trying to figure out how to toggle the "MENU BACKGROUND" object between the "areaMenuBlue" and areaMenuPurple" based on what question is being displayed.
(i.e. areaMenuBlue - Question 1 / areaMenuPurple - Question 2 and so on. )

I feel like this should be something very easy, but I can't seem to get my head around it any help is appreciated.
Last edited by lrhonsberger on Mon Apr 07, 2014 1:46 pm, edited 1 time in total.
B
5
Posts: 7
Reputation: 260

Post » Sun Apr 06, 2014 4:30 am

Create a global variable called Question with number value:

System> Question=1 > menu_1 set visible
_______________________>menu_2 set invisible
_______________________>menu_3 set invisible

System> Question=2 > menu_2 set visible
______________________ >menu_1 set invisible
_______________________>menu_3 set invisible

System>Question=3 > menu_3 set visible
______________________>menu_1 set invisibl2
_____________________ >menu_2 set invisible
Image
B
75
S
23
G
3
Posts: 673
Reputation: 9,293

Post » Mon Apr 07, 2014 1:39 pm

Thank you! I've moved onto other parts of the project.
But will be going back to that.
I'll post if I have any issues or if it worked here in a couple of days.

Thanks again!

Updated Link: db.tt/orWXAduW
B
5
Posts: 7
Reputation: 260


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 9 guests