Hello! I'm not sure where to put this? But...I am getting this error and i'm not sure what's wrong?
Syntac error line 24 (tab 0)
If poison=9 then poisoned=true end
'Then' expected near '='
Here is my code I am working on...
function _init()
sprite=1
stimer=0
last_frame=4
first_frame=1
table={} --example
coin=false --example
string="dragon",23,"fist"
-- example
x1=25
y1=0
x2=50
y2=5
hcolor=8
poisoned=false
poison=0
end
function _update()
if poison<=9 then poison+=1 end
if poison=9 then poisoned=true end
if posioned=true then y1=y1-10 end
--if stimer<=7 then
--stimer+=1
--else
--if sprite<=last_frame then
--sprite+=first_frame
--else
--sprite=first_frame
--end
--stimer=0
--end
function _draw()
cls()
spr(sprite,64,64)
rectfill(x1,y1,x2,5,hcolor)
rect(x1,y1,x2,y2,7)--20,5,7
print("health",0,1,7)
--health bar combo

This is my first attempt to create a playable game/gameplay loop while learning Lua and Pico8! Mostly an exercise in problem solving given my very (very) beginner knowledge, without using outside code or premade strategies.
Arrow keys to navigate the menu, x to select, and z to restart or redeal when prompted.
Enjoy!

I am trying to run pico-8 (raspi edition) on me raspi zero w. I have all the requirements installed but when I try to run pico-8 It asks me "select an application to open 'executable' files" I have tried all of the files andhey all do the same thing. Pls help.
UPDATE:
I fixed it by typing:
chmod +x pico8
ARTery
A nice little drawing tool
version 2.7182... (e): "More than ever, hour after/ hour work is never over" edition

features:
- multiple tools
- brush tool
- shape tool (rectangles and ovals, both filled and not)
- text tool
- select and move tools
- multiple palettes
- 4 steps of undo
- zoom and pan
- lots of keyboard controls
- exporting, both as images and project strings
- importing, any project strings and images <= 128x128 online, more in pico-8
controls: (keys in QWERTY layout)
Controls
Use Arrows to move.
Hold X to shoot.
Press Z to use EMP.
Rules
Collect 10 cherries to regain health. If you have maximum health, you will get 100 points instead.
EMP destroys enemy bullets and gives temporary invulnerability.
Killing enemies who are preparing to attack will give you more points.
Beat 30 waves to win.
More
This is my first game made in Pico8! It was difficult because my code is not optimized at all and i used all 8000 tokens, but it's here finally. Hope you will at least like it a little :)

Hello, all! I have a question about a project I am working on in pico 8 (Random name generator).
I tried rnd (command) at first and that failed for obvious reasons. And now I am in a pickle I can use print and say a = "tammy" and it work's.
But!
When I add more it only works on the first entry? In reading the manual it doesn't say anything that I can see that could help me. Online has been a bust though still interesting.
I also checked out the cart pico map generator (the world name generator part) which help's in that I need to write a function...? It is rather long (and beyond my understanding unless I squint really hard).
Anyone have any way to combine two (or more) names using the print command? Or something else?
Thank you, for your time!
Ps. I am still learning pico 8. I can make (very) simple games and I not versed in each command nor the terms.






1 comment
















