Log In  

I'm noob with PICO-8 and wanna play "Mary had a little lamb" using only beeps from code. Not using sfx editor, not using music.

however, i dont hear any beeps. Whats wrong?

    print("Press arrow keys ",12,64,0)
        ID=0

    if btnp(0) then sfx(id,"E-4")
      elseif btnp(1) then sfx(id,"E-6")
      elseif btnp(2) then sfx(id,"E-7")
      elseif btnp(3) then sfx(id,"E-5")
    end
P#43111 2017-08-06 23:07 ( Edited 2017-08-07 03:07)

That is not how the sfx function works.

... I think maybe you're accidentally trying to do a TIC-80 tutorial on a PICO-8?

P#43116 2017-08-07 16:40 ( Edited 2017-08-07 20:40)

Anyway, so far as I know, you can't do what you're trying to do.

The SFX function only plays sounds from the sound editor.

(I do wish you could at least generate simple tones from code.)

P#43118 2017-08-07 17:08 ( Edited 2017-08-07 21:08)

Yes, i tried a TiC-80 example, didnt work.

>> generate simple tones from code
which seems possible in TIC-80.

P#43129 2017-08-08 20:57 ( Edited 2017-08-09 00:57)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-28 21:21:36 | 0.006s | Q:10