Log In  

A few quick questions, mostly for sound.

[1] Can you play a SFX and have the ability to change the pitch of it before it plays ?

[2] Is there a way to COPY and PASTE SFX data from one PICO-8 app or Notepad to another ?

[3] When defining values for local variables, if you need to define more than one, it either requires 2-lines of code:

local a=1
local b=2

Or this unusual way:

local a,b=1,2

Is it possible someway to do it like this ?

local a=1,b=2

If you try this, you get an error.

If you try it this way:

local a=1 b=2

Then "b" value is set, but it is global.

P#54682 2018-08-04 12:42 ( Edited 2018-08-05 04:04)

[1] SFX are memory-mapped, so you could poke stuff into them dynamically. See:

[2] Not to my knowledge, at least not at the moment. We've requested it from @zep previously, so we'll see if it's in the next version. You could use the memory mapping info above to write functions that then export and import a given effect number to the clipboard using printh() and stat(). See:

[3] Nope. Think of it as a tuple assignment, not a variable list. Same is true for globals, sans the 'local' keyword. Avoid putting the 'local' keyword in the same mental box as the declared type in another language and it'll bother you less. :)

P#54692 2018-08-04 17:55 ( Edited 2018-08-04 22:01)

And of course .p8 files are editable text, so you can grab the appropriate lines in the sfx section and copy-paste them between carts with any text editor.

P#54710 2018-08-04 20:42 ( Edited 2018-08-05 00:42)

Oh, duh. Of course! Thanks for reminding me, dddaaannn. :)

P#54711 2018-08-04 20:49 ( Edited 2018-08-05 00:49)

Dddddammn ! :D

Yeah, I was thinking of building a silly simple program in Blitz to let you transfer SFX from one P8 to another.

Still - direct control inside the P8 editor would be much more desirable.

P#54722 2018-08-05 00:04 ( Edited 2018-08-05 04:04)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-19 19:52:48 | 0.006s | Q:16