Logic Blocks Block

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
User avatar
Mark360
Posts: 39
Joined: Thu May 17, 2018 11:15 pm
Location: England and USA

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?
Attachments
logic block mobiles.PNG
logic block mobiles.PNG (31.56 KiB) Viewed 1179 times
logic Block desktop.PNG
logic Block desktop.PNG (41.88 KiB) Viewed 1179 times
If it looks impossible you just have not found the right angle to view it from.
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

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
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Post Reply