I'm having issues with this code, everytime I run it i just get this
runtime error line 34 tab 3
if collide_map(player,"down",0) then
attempt to call global "collide_map" (a nil value)
here's my code:
--external functions-- function dns(sp) spr(sp.sp,sp.x,sp.y,sp.w/8,sp.h/8,sp.flp) end function player_update() --physics player.dy+=gravity player.dx*=friction --running if btn(⬅️) then player.dx-=player.acc player.running=true player.flp=true end if btn(➡️) then player.dx+=player.acc player.running=true end --jumping if btnp(🅾️) and player.landed then player.dy-=boost player.landed=false end --collision on y axis if player.dy>0 then player.falling=true player.landed=false player.jumping=false if collide_map(player,"down",0) then player.landed=true player.falling=false player.dy=0 player.y-=(player.y+player.h)%8 end elseif player.dy<0 then player.jumping=true if collide_map(player,"up",0) then player.dy=0 end end --collision on x axis if player.dx<0 then if collide_map(player,"left",0) then player.dx=0 end elseif player.dx>0 then if collide_map(player,"right",0) then player.dx=0 end end player.x+=player.dx player.y+=player.dy end --function player_animate() --end |
here's just the section its calling out:
collide_map(player,"down",0) then
player.landed=true
player.falling=false
player.dy=0
player.y-=(player.y+player.h)%8
can anyone help me out with this
i spent my time very wisely today while on an extremely unproductive conference call, and now you can benefit from my varied attentional deficiencies.
please enjoy some emoji sprites, completely free for you to use. they work great on the forum here, but i think i'll also put them into my textbox dialogue parser so characters can emoji at the player. maybe that's fun, maybe that's insufferable. i guess i'll find out!
[8x8] | |
[8x8] | |
[8x8] | |
[8x8] | |
[8x8] | |
[8x8] | |
[8x8] | |
[8x8] | |
[8x8] | |
[8x8] | |
[8x8] | |
[8x8] | |
[8x8] | |
[8x8] | |
[8x8] | |
[8x8] | |
[8x8] | |
[8x8] | |
[8x8] | |
[8x8] | |
[8x8] | |
[8x8] | |
[8x8] | |
[8x8] | |
[8x8] | |
[8x8] | |
[8x8] | |
[8x8] | |
[8x8] | |
[8x8] | |
[8x8] | |
[8x8] | |
A simple game where you use the left and right arrow keys to shorten or lengthen a permanently rotating tether ball. Hit the green circles for points, and avoid the yellows.
update:
Now has an easy mode with tether that extends and constricts faster
update 2:
Now has music and sfx for tether length change.
The Nightportsman of El'al Raheeb
in a far away archipelago called el'al raheeb the summer weathers are not but the most extreme.
the long, scorching days limit trade between the islands. foods spoil, water evaporates, the crews are pushed past their limits by the endless sun.
despite their best attempts merchants find the summers unbearable. luckily, the winters are a much needed reprieve for the boatmen and community alike.
in winter, the sun hides for 45 days of calm darkness which brings milder temperatures and turns the multiday voyages between islands bearable. bearable at least for those merchants willing to brave the other dangers of the sea.
these critical and unique boatmen work day and night through the winter, trying their best to supply the islands and turn a profit.
when the sun eventually rises and summer approaches then the merchants finally turn home. they pray to have made enough to support their families until the next winter.
you are one of these merchants, a nightportsman, and winter has come.
good luck may elals guide you.
Tips & Tricks
This calm business sim is all about strategically packing your ship and sailing from port to port to make money.
- Keep an eye out for items which are cheap or expensive at a port, similar items will have similar prices.
- You have 45 days to make as much money as possible.
- Balance spending your money on goods with upgrading your ship, buying newspapers, and exploring.
- Island needs, positions, and traits don't change between seasons, so keep notes.
- Around 1000¥ is a great score.
I found creating custom cartridge labels to be an exceptionally infuriating process, so I built a python script that can transform any image file to a Pico 8 label. The tool works best with images made especially for Pico 8, with a size of 128x128 and their official color palette, but for shiz and giggles I made it work with any image.
Here's the GitHub repo: https://github.com/amirave/pico-label
If you don't want to go through the troubles of cloning the repo, just save the pico_label.py file inside of it (:
A demonstration of the tool:
I wrote this little space "bullet hell" game as the final product of a tutorial I'm working on.
Food icons humbly yoinked from https://twitter.com/JUSTIN_CYR
Welcome to the Pico-verse - a pixelated land of tiny horizons and even tinier characters. In the Little Apple, a bustling town on the seaside, something terrible has happened! An oversized simian sprite has escaped and taken a citizen in its cruel clutches! Making its way through town, it has climbed up the construction site of the town’s tallest building. But one brave soul stands forth, determined to rescue their fellow citizen from the dreaded… Dinky Kong!
How to Play
Select your hero - choose from Minio or Smalline.
Press ⭕️ to start.
Move with ⬆️⬇️⬅️➡️
Jump with ⭕️.
Hi,
I'm trying to use the Pico 8 editor without a mouse, and I've seen from other posts how to use CTRL-TAB to navigate between tabs.
However, does anyone know if there's a keyboard shortcut to create a new tab?
Thanks,
njp
Edit: Added to "bugs" as suggested since the keyboard shortcut appears to be missing.
I'm starting a tutorial on how to make your a BETTER Shmup in Pico-8! It's for complete beginners. It is a series specifically designed for more experienced developers looking to enhance their skills. It is a follow up to the Basic Shmup Tutorial we did earlier last year.
We will take everything we've learned in the basic tutorial and turn it up to 11. We will cover things like project planning, token optimization and tool development. The goal will be to make a PROPER Shmup with a rich scrolling background, dynamically spawning enemies and complex bullet patterns.
New episodes on Wednesdays and Saturdays. I will use this thread to keep a list of the episodes and post significant progress. Let's gooooo!
Olden Peak: A Tiny Soulslike-Metroidvania
I made this game last year shortly after finishing Elden Ring. Olden Peak is a melee combat-focused metroidvania with some soulslike elements like limited healing flasks and stamina.
I released this (last year) on itch where you can find the well-formatted source code (the cart here has all my #includes unfolded so it's tougher to read).
Controls (Explained in-game)
X - jump
C - attack
double-tap left or right to roll
hold "up" to check your stats
press "down" to use a health flask
Attacking and rolling costs stamina. Your health and stamina go up when you 'level up'.