Hello everyone. Today I wrote a script to swap Sprites positions without messing with the Map. Very handy to reorganise your sprite sheet. And Flags will follow. Here's how it works:
1- Make a backup
First thing first: make a backup of your p8 file!
This is important, as you can screw things up real quick if you do not pay attention.
2- Get the script
Create an empty file named "swapspr.lua" that you'll put alongside your p8 file.
Copy/paste this script to "swapspr.lua" and save it:
function swapspr(n1,n2) for i=0,7 do local p1=i*64+n1*4+448*flr(n1/16) local p2=i*64+n2*4+448*flr(n2/16) local b1,b2=peek4(p1),peek4(p2) poke4(p2,b1) poke4(p1,b2) end local f1,f2=fget(n1),fget(n2) fset(n1,f2) fset(n2,f1) for x=0,127 do for y=0,127 do if mget(x,y)==n1 then mset(x,y,n2) elseif mget(x,y)==n2 then mset(x,y,n1) end end end cstore(0x0000,0x0000,0x7fff) [ [size=16][color=#ffaabb] [ Continue Reading.. ] [/color][/size] ](/bbs/?pid=64987#p) |

Hi,
I have an idea-- lets say i have a voxel model with colors blue and brown. Is lUA/shader/something else
able to have the blue voxels behave/look like water and the brown like dirt? Is there another idea for this? id like the existing properties be linked to the colors of the model!! Well, keep on voxing!
If you port your PICO-8 game to any European languages other than English, you might want to include some character accents, which doesn't work by default since PICO-8 only supports ASCII characters (plus some special ones in the unused range between ASCII and ISO-8859-1).
My work here is based off of Zep's post from a couple weeks ago about Latin accent printing (by including special characters in front of plain ASCII characters to indicate accents). My code goes a step further by offering a way to save your strings with the real accent characters included, and then encode them so they can be printed properly. This way your text is a bit more readable in the source file.
I slightly modified Zep's original print function by changing the :
control character to @
since I needed :
in my printed text. The general rule, if you want to add new encoded characters to this system, is to pick a control character that won't be needed in the actual printed text.
You hail from a dairyless world, void of cheese and butter. On your quest, you come across a planet riddled with the necessary provider to bring dairy back to your planet: the cows of Earth.
Your objective is to grab as many of the cows as you can, before the Earthlings make an attempt at your life.
Ghost Rally
Game
The game is a race-against-yourself rally game. It features accurate rigid body physics and car handling.
Goal is to beat yourself every lap!
Enjoy racing as in the 80's, whith over powered cars very close to the public!
tip hitting any of the lil' dudes:
![]() |
[0x0] |
warning the game is complete yet the car handling is really picky - I am releasing it as is, as I can't tweak the gameplay without breaking the physic engine :/








.jpg)








Press "z" to start
Press "←" "↑" "↓" "→" to control the character move
Press "x". You can change between two characters .
Angel:
has faster speed;
can catch the heart to recover;
Devil:
press "z" can shoot enemies;
You will get scores if you:
Touch the heart
Touch the medal
Touch the diamond
Shoot the enemies
Music: Pallet-town @illMadeCoder
It's my first game made with pico-8. Thank you for playing!
.jpg)
