Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to replay current slide

New Here ,
Jun 04, 2017 Jun 04, 2017

Hi (directed to Li l y b ir i but open to any other suggestions),    

I want a slide to replay once it gets to the end (e.g. on slide exit) as this means the time for a game has run out and users need to restart the activity to have another go. 

I have tried the tips at blog.lilybiri.co m/replay-slide-button. The advanced action works for buttons but when I assign it to slide  ' o n    e x i t ' it restarts the slide animations, but the 'slide audio' does not play for some reason . Is there a way around this issue? E.g. can you insert a  transparent object/button that is triggered on slide entry rather than user click?

Thank you

PS: I cannot use object audio, it needs to be slide audio.

417
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 05, 2017 Jun 05, 2017
LATEST

As I explained in another blog post, the On Exit event is to be avoided whenever possible, and certainly for navigation.

Events and (advanced) Actions - Captivate blog

Since you need a reset, you have to re-enter the slide. The blog post you refer to was written fro CP8. Since CP9 there is a bug, the On Enter action is not executed for HTML5 output when you use micronavigatio (Scenario 2 in my blog post. In a more recent post about CP2017 I propose a workaround: Playing a dice game, using While loop - Captivate blog

This not very elegant workaround needs the insertion of a very short dummy slide before the slide to be reset. In your case I wouldn't use the On Exit action but the On Enter action of the slide following the slide to be replayed, and use this action:

   Expresssion cpCmndGotoSlide = cpInfoCurrentSlide - 3

   Continue

Explanation: cpCmndGotoSlide has a index starting with 0, cpInfoCurrentSlide starts with 1

If you have 3 slides:

    Slide1 = dummy slide, cpInfoCurrentSlide = 1, but for cpCmndGotoSlide you need to use 0

    Slide2 = game slide, cpInfoCurrentSlide = 2, but for cpCmndGotoSlide you need to use 1

    Slide3 = slide after game slide, where you use On Enter action, cpInfoCurrentSlide = 3, but for cpCmndGotoSlide you need to use 2

Expression results in 3-3=0   which means the user is navigtated from slide 3 (On Enter) to slide 1. Since this slide is very short (0,1sec is OK), and the next command is Continue, user will barely see slide 1, re-enters immediately slide 2 and everything is reset.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources