Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

speech not paused by the pause button.

in Bugs Posts: 814

Is it a Bug or feature?

Comments

  • em2em2
    edited October 2017 Posts: 194

    Elaborate please? As I recall, many functions aren't paused with the pause button, including physics, DeltaTime, and coroutines.

  • dave1707dave1707 Mod
    Posts: 7,553
    function setup()
        s=readProjectTab("Main")
        speech.say(s)
    end
    
    function draw()
        background(0)
        fill(255)
        if wait then
            text("tap screen to continue speech",WIDTH/2,HEIGHT/2)
        else
            text("tap screen to pause speech",WIDTH/2,HEIGHT/2)
        end        
    end
    
    function touched(t)
        if t.state==BEGAN then
            if not wait then
                wait=true
                speech.pause(true)
            else
                wait=not wait
                speech.continue()
            end
        end
    end
    
  • em2em2
    Posts: 194

    FYI, speech.pause() pauses speech.

  • edited October 2017 Posts: 814

    I mean the bottom left buton of the navigation should stop the entire project, including speech.

Sign In or Register to comment.