Sie sind nicht angemeldet.

viewinz

Fortgeschrittener

  • »viewinz« ist der Autor dieses Themas

Beiträge: 145

Wohnort: Wellington, New Zealand

Beruf: Trying to build an entire walkthrough of NZ for tourists

  • Nachricht senden

1

Samstag, 30. Januar 2010, 00:27

Previous/Next scene buttons

Hello,

Anyone any idea how to do a previous or next scene button that will load the previous or next scene in a scene list? If it's the last scene the next one needs to be the first and if it's the first scene the previous one needs to be the last if that makes sense?

Cheers..

2

Samstag, 30. Januar 2010, 01:18

http://www.virtualnorthland.com/panos/caf/

click on tour extras then click tickerhoof day i made a previous and next buttons. added some of the code i used below. obviously the plugins are called pre and next.

<action name="aday2">

set(plugin[pre].visible,true);
set(plugin[next].onclick,aday3());
set(plugin[pre].onclick,aday());

</action>

<action name="aday3">

set(plugin[next].onclick,aday4());
set(plugin[pre].onclick,aday2());

</action>

<action name="aday10">

set(plugin[next].visible,true);
set(plugin[next].onclick,aday11());
set(plugin[pre].onclick,aday9());

</action>

<action name="aday11">

set(plugin[next].visible,false);
set(plugin[pre].onclick,aday10());

</action>