Page 1 of 1

Logic Blocks Block

Posted: Thu May 24, 2018 12:23 pm
by Mark360
I have 2 sets of images.

1 set shows for screen size 1024 to 800

the 2nd set below 800.

I can get one set to show or the other but not both. so if it shows on mobiles no image on desktop and versa.

The logic blocks control the items in the container in both instances. What am I missing?

Re: Logic Blocks Block

Posted: Sat May 26, 2018 1:07 am
by Hopki
Hi Mark,
The way logic blocks work is you have an expression that is made of conditions.
If you have more then one expression, then the first that meets the conditions is actioned and the following one is ignored.

In your second screen shot as an example your saying if the player is between 800 and 1024px then hide it.
It will not look at the Is Mobile expression as the firs is met so will stay hidden.

You need to make an expression where all conditions need to be met.
Example:
For image One: If the player is between 800 and 1024px AND is a mobile, Visible: true (its default will be hidden)
For image Two: If the player is between 800 and 1024px AND is not a mobile, Visible: true (its default will be hidden)

So the images will only show if the player is between 800 and 1024, but depending if being displayed on a mobile or not will determine if image one or two is displayed.
Regards,
Hopki