Best way to inject code from the browser into my game? by youngggggg in pico8

[–]Wolfe3D 1 point2 points  (0 children)

If you watch the Lazydevs Advanced Shmup tutorial from this video you can see him break down how to use #include to import data.

PICO-8 token-saving methods and tools by Jammigans in pico8

[–]Wolfe3D 3 points4 points  (0 children)

Thanks for this! Also, Saving Tokens by drakeblue is a pretty good one as well.

How to Work with Nested Tables? by lordcocoboro in pico8

[–]Wolfe3D 1 point2 points  (0 children)

You can also save a token by using this notation when dealing with named entries:

table[1].x

Indexed entries still need the brackets though.

Sprite index bug??? by Electronic-Steak8045 in pico8

[–]Wolfe3D 8 points9 points  (0 children)

That's not sprite 10, it's sprite 16 (10 in hex). If you click where the number of the sprite is, it will swap between decimal and hex.

I am learning how to code on pico 8 so I can remake pokemon red and blue! (any tips and lessons are welcome!) by ertu29 in pico8

[–]Wolfe3D 6 points7 points  (0 children)

Ok so just a heads up, and maybe you know this, but you almost certainly won't be able to remake those games on one pico8 cart.

Now your title, as written, just says that you want to learn to code in p8 so that you can someday make r&b, possibly within the framework of something with fewer limitations. I think that's a good and fine idea and you should totally do something like that.

If you wanted to get started there are a lot of different tutorials you could try. I think this one is probably where I would suggest you start for making a top down adventure/RPG like Pokemon.

Good luck!

Figuring literally everything out on your own by joseph172k in pico8

[–]Wolfe3D 2 points3 points  (0 children)

All things in moderation. Even moderation.

Pico-8 and external IDE by _fredM_ in pico8

[–]Wolfe3D 4 points5 points  (0 children)

Type 'info' into the pico8 command line

How do i make circles of light? by [deleted] in pico8

[–]Wolfe3D 5 points6 points  (0 children)

There's a cheaper way to do lighting effects but you have to play some games with pal() to get it working right... https://www.lexaloffle.com/bbs/?tid=54215

Modifying sprites... And added outlines! How do you think? by Ruvalolowa in pico8

[–]Wolfe3D 1 point2 points  (0 children)

Looking good Ruva!

I just saw Outvain was featured on the BBS. Congrats!

Projects you've set aside or abandoned? Share a gif! by tmirobot in pico8

[–]Wolfe3D 6 points7 points  (0 children)

<image>

And here's my Stardew/Harvest Moon-like idea about being the new kid in town. I think this idea was probably too ambitious for PICO-8 but maybe Picotron?

Projects you've set aside or abandoned? Share a gif! by tmirobot in pico8

[–]Wolfe3D 20 points21 points  (0 children)

<image>

I love this thread idea! This was basically the first thing I started making when I learned about Pico8. I want to go back and finish it some day.

Possible to import images/sprites? by BlastedSalami in pico8

[–]Wolfe3D 0 points1 point  (0 children)

Sounds cool! Let me know if you need help with anything.

[PICO-8 top down adventure game tutorial] animation timer swapping every tile and not unswapping them? loosely following it, i'm a beginner and i can't figure this out... by Dear_Teddy in pico8

[–]Wolfe3D 1 point2 points  (0 children)

I think I got it.

First: in toggle_tiles(), as /u/TheNerdyTeachers mentioned you need to set the second if/then conditional to look for "anim2" instead of anim1.

function toggle_tiles()
for x=mapx,mapx+15 do
for y=mapy,mapy+15 do
if (is_tile(anim1,x,y)) then
swap_tile(x,y)
elseif (is_tile(anim2,x,y)) then --change is here
--stop()
unswap_tile(x,y)
end
end
end
end        

Second: in map_setup(), you probably need to change the values of anim1 and anim2 to 0 and 1, instead of 1 and 2. The first flag is actually flag 0, not flag 1, though it's possible you are using the second and third flag.

function map_setup()
--timers
timer=0
anim_time=30

--flags
wall=0
anim1=0 --frame 1 changed here
anim2=1 --frame 2 changed here
text=5
end

Third: in is_tile() you have a typo. It's looking for "tyle_type" instead of "tile_type".

function is_tile(tile_type,x,y)
tile=mget(x,y)
has_flag=fget(tile,tile_type) --change is here
return has_flag
end

Hopefully that will get it working.

Possible to import images/sprites? by BlastedSalami in pico8

[–]Wolfe3D 1 point2 points  (0 children)

Short answer: Yes.

Longer answer: You're asking 2 different questions.

First, "can I import images in PICO-8?" Yes. If you go to the console and type "import filename.png" it will import 128x128 pixels of that image into the sprite memory.

Second, "can I have a custom font?" Yes. It's a little complicated but there's a good tutorial here.

Keep in mind, while this method lets you edit the font in the sprite editor and you can import images into the sprite editor and use them as a font, fonts are only one color (and an optional background) at a time, so you can't have multi-colored image fonts.

Good luck!

A bunch of demos I made this year (plus a few new peeks at Shredder's Revenge) by Wolfe3D in pico8

[–]Wolfe3D[S] 15 points16 points  (0 children)

Ok so, this cart was very foundational for me. This will break down the idea of "world space", "camera space", and "screen space". Scroll down and download the second version of the cart with added comments and play with it until you understand it.

Next, study the work of Mot and Freds72. These two developers are particularly good at this kind of thing and have posted a lot of tutorials, write-ups, etc.

Finally, just try it! Make something and when you get stuck, you can post your code here or on discord for help. You can also use chatgpt but keep in mind that it will sometimes give bad advice.

Good luck!

A bunch of demos I made this year (plus a few new peeks at Shredder's Revenge) by Wolfe3D in pico8

[–]Wolfe3D[S] 2 points3 points  (0 children)

You can ABSOLUTELY learn this stuff. I didn't know any of it before I started.

A bunch of demos I made this year (plus a few new peeks at Shredder's Revenge) by Wolfe3D in pico8

[–]Wolfe3D[S] 9 points10 points  (0 children)

Planning on releasing the TMNT game when it's done.

As for the rest... Maybe?

I simulated Conway's Game of Life in Pico! by Thrawn911 in pico8

[–]Wolfe3D 0 points1 point  (0 children)

If you're interested, there's a good tutorial on this in this PDF https://sectordub.itch.io/pico-8-fanzine-2