PDA

View Full Version : How to make an intro


jordi
11-23-2009, 07:30 PM
Hi everyone !!

I'm trying to use FPP for making not only virtual tours but also for giving extra information with different windows...

The fact is that I want to make an intro, before you can see any panorama

I'm using some spots to make this intro, and some of them have an onclick action that makes disapear this spots and make appear the panorama...

Ok next I'm using a timer to make everything dissapear after a few time, so the users that doesn't know how to use it will acces to the panorama after a few time...

The problem is that the timer is making everything dissapear and load a pano, so if some users click on the spot to acces to the panorama just now, after the timer will load anyway the panorama...

MMMM it's a bit difficult to explain, but hope that someone will understand it...

Maibe I have to use the pluguin from tommy, the panologic, and say if the a new pano is loaded then forget about the timer actions...

Thanks in advance, and sorry for the messy explanation...but I don't have currently and example...

I'm gonna post one soon

Scott Witte
11-24-2009, 02:38 AM
Jordi,

As I understand it, you start a timer (in global.onStart?) that causes a pano to appear after some amount of time. But you also have buttons that will start a pano with the onClick function. Problem is the timer is still running and starts its pano even if a pano is already started with the onClick.

OK. You "simply" need to stop the timer. There is an example in the tutorial about this. Search for "onKeyPress event". Essentially, in the onClick function you set the timer to 0, stopping it.

One potential problem: You have to be certain the timer you stop is the exact same one you started. For example you might start the timer with "pano.timer+=1,10000,,startpano;" You then stop it with "pano.timer=0;" Just using "timer" as in the tutorial could result in FPP confusion and NOT stopping the intended timer.

Hope that helps.

allSaints
11-24-2009, 03:45 AM
Thanks Scott

for the clarification about the timer thing - it has been a bit foggy to me.


Tommy

jordi
11-24-2009, 06:28 AM
Hi Scott !!

Yes, you understood it perfectly, this was my problem, to find a way to stop the timer in the case that another spot started the pano...

So just now I'm looking for the onKeyPress event in the tutorials, hope I will make it...

Thanks so much

jordi
11-24-2009, 06:43 AM
Yes !!!!

I was trying it and it's working like a charm !!! ;)