Page 1 of 1

Background img freezing script

Posted: Fri Sep 16, 2016 2:11 pm
by newpie
Hello, I coded a native scroller (lorem) for my group that has an large image using Livecode "8.1". It runs smoothly on android tablet. The issue comes in when I add a background button and fill in with imported png image on separate card. Then it freeze. I am not used to building for mobile.

Is there a trick or something I have to do in order to get this working smoothly again. I prefer to use my imported background images for my button (background). I traced it down to this because I change the background to a solid color and it works fine again.

Thanks for any help.

Re: Background img freezing script

Posted: Fri Sep 16, 2016 4:18 pm
by jacque
I'm not quite sure how the button is involved, but in general a scroller requires acceleratedRendering to be turned on, and the group's layermode should be set to "scrolling".

Re: Background img freezing script

Posted: Fri Sep 16, 2016 6:19 pm
by newpie
Thanks jacque for responding. The button is just functions as background with controls in front of it. I included a very simple script to show you what I mean by imported background img.

Thanks

Re: Background img freezing script

Posted: Fri Sep 16, 2016 7:38 pm
by jacque
I don't usually download files from the forum (screenshots are better) because typically I'm not at my computer when I visit the forums. Regardless of the setup though, I think you do need to experiment with acceleratedRendering and layerMode. Those properties were made specifically to allow smooth animations and scrolling.

Re: Background img freezing script

Posted: Sat Sep 17, 2016 3:13 pm
by Klaus
newpie wrote:Thanks jacque for responding. The button is just functions as background with controls in front of it. I included a very simple script to show you what I mean by imported background img.

Thanks
There is no script anywhere in that example stack? 8)

Re: Background img freezing script

Posted: Sat Sep 17, 2016 4:47 pm
by newpie
Thanks Klaus, yes there is no script there. I was just trying to answer the question regarding "how the button is involved". Sorry to confuse.

Re: Background img freezing script

Posted: Sat Sep 17, 2016 5:57 pm
by Klaus
OK, but that may have shown a problem, which I cannot see in the moment.

Re: Background img freezing script

Posted: Wed Sep 28, 2016 4:57 pm
by newpie
Hello, apologize for late reply, I believe it is the android tablet I am using. It is low-level and just can't keep up with the image loading/rendering. Thanks for your help though.