Fandom

Petit Computer Wiki

Petit Tutorials - BEEP and COLOR

915pages on
this wiki
Add New Page
Comments5 Share
Petit Computer - 2 BEEP and COLOR06:07

Petit Computer - 2 BEEP and COLOR

Video Tutorial

Hello! I'm CKlidify, and in this tutorial I will teach you how to use the BEEP and COLOR commands!

BEEPEdit

To make a beep sound come out of your DSi or 3DS, the command you would want to use is the BEEP command! With this you can make up to 263! Even though the manual says it only goes up to 69! So let's make a program that does a different BEEP every second! We'll start off by writing the multiple beep commands.

BEEP
BEEP 2
BEEP 3
BEEP 4
BEEP 5
BEEP 6
BEEP 7
BEEP 8
BEEP 9
BEEP 10

At this current state it will play all 10 beeps at once. We want it every 1 second! So to do this add this inbetween each BEEP command:

WAIT 60

This tells the game to wait 60 frames. Which is 1 second, since the game runs at 60 frames per second!

So your final code should look like this:

BEEP
WAIT 60
BEEP 2
WAIT 60

An so on... I can't really show what would happen in text, so I'm going to allow you to do it yourself by typing it out or by watching the attached video!


COLOREdit

Want to color your text? Well this is how! Before you add the PRINT of INPUT command, you want to set the color of the text you're about to write. You do this with this line of code:

COLOR 0

Now, when I put the 0, that's the color of the text. I don't know what each number corresponds to, but I do know that 0 is white, and at the VERY LAST LINE of every program you make. If you AT ALL changed colors during that program, you want to add "COLOR 0" to the end, to reset the color of the console. To find out some colors you can make a simple program such as the BEEP one but with printing and coloring instead of waiting and beeping.

COLOR 1
PRINT "1"
COLOR 2
PRINT "2"
COLOR 3
PRINT "3"

And so on and so forth. In the end, you'll have each number the color of that number. Once again, I can't really show what would happen in text, so I'm going to allow you to do it yourself by typing it out or by watching the attached video!

On to the next tutorial!

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.