Resizing Splash screen

Want to talk about something that isn't covered by another category?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9359
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Resizing Splash screen

Post by richmond62 » Fri Oct 25, 2013 7:57 pm

A very long time ago (about 40 years ago) I remember an educational TV programme that started with an image that expanded from a dot in the middle of the screen.

It occurred to me that this might not be a bad idea for a splash screen.

I "had a go" and have attached it here.

The main problem is that to make it slow enough for it not to expand so quickly the viewer doesn't really see it one has to use "wait 2 ticks" in the script, and this results in the expanding
tomato jiggling around in a slightly disconcerting fashion.

I wonder if the scalable vector graphics in the Kickstarter stretch goals will mean that this phenomenon will soon be a thing of the past?
splash.livecode.zip
This is the stack I refer to.
(156.51 KiB) Downloaded 300 times

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9359
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Resizing Splash screen

Post by richmond62 » Sat Oct 26, 2013 5:15 pm

I have tried the same thing with a regular polygon graphic filled with a gradient and still get the same jiggly effect.
splashx.livecode.zip
Splash screen with regular polygon graphic
(739 Bytes) Downloaded 323 times

Newbie4
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 327
Joined: Sun Apr 15, 2012 1:17 am
Location: USA
Contact:

Re: Resizing Splash screen

Post by Newbie4 » Sat Oct 26, 2013 7:44 pm

It makes it a little better if, inside the repeat, you "lock screen" before doing the "set's" and "unlock screen" after them.
Cyril Pruszko
https://sites.google.com/a/pgcps.org/livecode/
https://sites.google.com/a/setonhs.org/app-and-game-workshop/home
https://learntolivecode.com/

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9359
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Resizing Splash screen

Post by richmond62 » Sat Oct 26, 2013 8:15 pm

I think, Newbie4, you had better mosey over to the Use-List where this discussion is currently on full-throttle.
LC_gadfly.png

capellan
Posts: 654
Joined: Wed Aug 15, 2007 11:09 pm

Re: Resizing Splash screen

Post by capellan » Sat Oct 26, 2013 8:41 pm

Probably, this message belongs to this forum:
http://forums.runrev.com/viewforum.php?f=10

Clearly, you question is not Off-Topic... :shock:

Newbie4
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 327
Joined: Sun Apr 15, 2012 1:17 am
Location: USA
Contact:

Re: Resizing Splash screen

Post by Newbie4 » Sat Oct 26, 2013 9:09 pm

Thanks for the suggestion, I will

BTW If you make the following changes to your code, it works much smoothly:

Code: Select all

repeat until DIMZ=4
      lock screen
      put (DIMZ - 1) into DIMZ
       set the width of stack "SPLASH" to DIMZ
      set the height of stack "SPLASH" to DIMZ
      set the width of img "tom" to DIMZ
      set the height of img "tom" to DIMZ
      unlock screen
      wait 2 ticks
   end repeat
 
do the same to the second part - add lock/unlock screen before the wait line and remove the setting of the top and left of the image before changing the width/height and change the increment to 1
Cyril Pruszko
https://sites.google.com/a/pgcps.org/livecode/
https://sites.google.com/a/setonhs.org/app-and-game-workshop/home
https://learntolivecode.com/

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: Resizing Splash screen

Post by [-hh] » Sun Oct 27, 2013 12:49 am

..........
Last edited by [-hh] on Wed Aug 13, 2014 1:54 pm, edited 1 time in total.
shiftLock happens

capellan
Posts: 654
Joined: Wed Aug 15, 2007 11:09 pm

Re: Resizing Splash screen

Post by capellan » Sun Nov 17, 2013 11:27 pm

Hi Hermann,
[-hh] wrote: [snip]
This all together works on my oldest machine (PPC/Tiger) very good.
And it is pretty fast. I recently used this technique elsewhere and
apply it now for your Halloween-like TOM.
[snip]
Work really fine on Windows too! :D
Many thanks for posting this stack. 8)

Al

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: Resizing Splash screen

Post by [-hh] » Sat Nov 30, 2013 9:20 pm

..........
Last edited by [-hh] on Wed Aug 13, 2014 1:54 pm, edited 1 time in total.
shiftLock happens

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: Resizing Splash screen

Post by [-hh] » Sat Dec 14, 2013 5:37 pm

..........
Last edited by [-hh] on Wed Aug 13, 2014 1:54 pm, edited 2 times in total.
shiftLock happens

capellan
Posts: 654
Joined: Wed Aug 15, 2007 11:09 pm

Re: Resizing Splash screen

Post by capellan » Sun Dec 15, 2013 3:13 am

Wonderful! Many Thanks for updating
your demo stack. :D

Al

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9359
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Resizing Splash screen

Post by richmond62 » Sun Dec 15, 2013 10:15 am

On Linux (at least) when the images resize they leave odd grey trackmarks on screen.

I also wonder how one can slow the resizing down without ending up with a jerking effect.

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: Resizing Splash screen

Post by [-hh] » Sun Dec 15, 2013 11:34 am

..........
Last edited by [-hh] on Wed Aug 13, 2014 1:54 pm, edited 1 time in total.
shiftLock happens

capellan
Posts: 654
Joined: Wed Aug 15, 2007 11:09 pm

Re: Resizing Splash screen

Post by capellan » Sun Dec 15, 2013 7:44 pm

I am reading this forum from Lubuntu 13.10
where the windowshape property would not
work until I install and configure a compositing
manager.

http://en.wikipedia.org/wiki/Compositing_window_manager

Later, today, I will boot into Windows and will
report back. :)

Have a nice weekend!

Al

Post Reply

Return to “Off-Topic”