Log In  

Hey, I am new to Pico 8, but I have previously used GameMaker. What I would like to ask is if there is an option to draw one sprite over another in map editor of Pico 8. Meaning that the transparent color actually becomes visible as color that is underneath the sprite. Something like layering.
Sorry if it sounds confusing..

P#55380 2018-08-19 08:19 ( Edited 2018-08-20 14:59)

You can use palt(...) to change transparent colours, and if you look at the Jempi demo cart you can see it has several sections of map that it draws one over the other with different movement to create a layering illusion. Look at the map editor and compare it with the game.

P#55381 2018-08-19 09:09 ( Edited 2018-08-19 13:09)

And read the manual! - you’ll have the various options and more that @Davbo proposed.

P#55382 2018-08-19 09:26 ( Edited 2018-08-19 13:26)

Where and how Can I find the Jempi's demo cartridge ?

P#55383 2018-08-19 09:53 ( Edited 2018-08-19 13:53)
P#55384 2018-08-19 09:56 ( Edited 2018-08-19 13:56)

RP, "Jelpi" is a demo game included with PICO.

Bring up the PICO system, in command mode type:

install_demos

press ENTER. Type:

cd demos

press ENTER, then

load jelpi

press ENTER, then

run

also followed by ENTER. And there you have it !

P#55387 2018-08-19 13:03 ( Edited 2018-08-19 17:03)

ohh thanks

P#55404 2018-08-20 03:40 ( Edited 2018-08-20 07:40)

I think you make a layer variable (like fg/bg=-1/1) and then have the _draw(function) draw them in a different order depending on the status (backdrop stuff, "bg" sprite layer, foreground, "fg" sprite layer, HUD).

I'm sure there's other ways to do this, but that's probably the most direct and code-effective, IMHO.

P#55415 2018-08-20 10:59 ( Edited 2018-08-20 14:59)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-28 09:15:34 | 0.015s | Q:25