Log In  

can someone help me remake scratch games on pico-8?
for example:
https://scratch.mit.edu/projects/370427015/
not that dead by Noentiendo2005

P#94319 2021-07-02 03:58

1

Scratch has a blocks-oriented interface and code is changed by clicking and moving things.

Pico-8 requires you to write lua code in a text file (tabs are cosmetic, this is all one long text file).

You can transfer your understanding of programming from one to the other (what’s a loop, what’s a comparison, calling a function with parameters, etc), but you will have to rewrite the code from scratch.

P#94350 2021-07-02 17:51

ok?

P#94774 2021-07-12 22:56
2

For example, this bit of scratch code:

would have to be turned into this lua code:

You can see many similar things: function is like a define block, if like if block, == to test if two values are equal, % is the modulo operator, etc.
Also many different things: scratch translates blocks, lua can have elseif instead of requiring else then nested if, functions have shorter name in pico-8 (flr to floor a number), and many others.

Another big difference is that pico-8 provides some functions to get player inputs (what buttons are pressed by the 8 players), to do some operations (like flr, ceil, min, max) and most importantly to draw things (pixel, line, rectangle, oval, sprite, etc) and play sounds, but pico-8 does not have any animation system or gravity or jump or anything related to gameplay. The console is made so that we have to define all the systems of our games. This can seem hard but there are many tutorials available, many bits of code that people share so that you can copy them, and lots of help on this BBS (forum) or on the discord server, and it gives you full control over how your game works.

This is a great guide that many people use to get started: https://mboffin.itch.io/pico-8-top-down-adventure-game-tutorial

P#94790 2021-07-13 13:46
1

Hey! We're here to help. How is your understanding of Lua, or other text-based programming languages?

P#94840 2021-07-14 07:30

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-18 06:02:31 | 0.007s | Q:17