i need a tutorial on how to use the d-pad for my OS to select categories on the menu, and the A button to go into that categorie or play that game. :I
DSiWare Forum
Topic: Petit Computer Tutorials
Showing 21 to 32 of 32
| Author | Message |
|---|---|
|
21. Posted: Tue 6th Nov 2012 13:32 GMT Edited on Tue 6th November, 2012 @ 14:37 by Romano |
|
Linput-3DS friend code: 4725-8494-2702 I'm currently looking for some peeps to make SALLY a website, facebook, and email. If anyone does this u will be mentioned as a producer in the SALLY OS credits! :) | |
| Author | Message |
|
22. Posted: Tue 6th Nov 2012 15:39 GMT NVM |
|
Linput-3DS friend code: 4725-8494-2702 I'm currently looking for some peeps to make SALLY a website, facebook, and email. If anyone does this u will be mentioned as a producer in the SALLY OS credits! :) | |
| Author | Message |
|
23. Posted: Tue 6th Nov 2012 17:17 GMT OH btw if someone could teach me how to make an AI chatting thing for my OS, that would be great. Also, could this tutorial plz be in a QR code so i can mention u in the credits of SALLY, my OS? |
|
Linput-3DS friend code: 4725-8494-2702 I'm currently looking for some peeps to make SALLY a website, facebook, and email. If anyone does this u will be mentioned as a producer in the SALLY OS credits! :) | |
| Author | Message |
|
24. Posted: Wed 7th Nov 2012 02:02 GMT I just made a website for Petit Computer tutorials. |
|
smartman789 | |
| Author | Message |
|
25. Posted: Sat 22nd Dec 2012 15:58 GMT to linput 14: check my os. its inspired off of yours, and i intend to put you in "special thanks" @SELECT Edited on Sat 22nd December, 2012 @ 15:59 by heatguts |
|
So what if there's no Mega Mans in Metroid? 3DS Friend Code: 4511-1723-4299 | |
| Author | Message |
|
26. Posted: Sat 22nd Dec 2012 18:44 GMT Alright, I'm just gonna make a quick thing on how to assign DATA to an array. (WARNING: Lengthy post.) A quick run down on arrays: Code in loop being executed 1st time: I=0 Remember, as I said before, PTC starts counting from zero. CLEAR Now, in order to see if it worked, we should print out the MARIO$ variable's values. Change te FOR-TO-NEXT loop to this: Now, run the program. If you did this correctly, you should get this: NES I could go into more detail, but my brain hurts too much. And if you still don't understand what I'm saying, I don't blame you. I'm terrible with words. Edited on Sat 22nd December, 2012 @ 18:47 by Philip |
|
Veeveeveeveeveevee 3DS Friend Code: 0559-7022-5853 | |
| Author | Message |
|
27. Posted: Wed 2nd Jan 2013 17:04 GMT Wow based off mine? That's awesome! Anyways, could somebody help me with a breakout game I'm making? It won't have the bricks to break at the top, it's just to help me learn to make games. I need help with the sprites. I don't know how to move them with the d-pad, and don't know how to make he sprites different sizes (like the ball and the paddle). I ALSO don't know how to do sprite collisions or make the ball act like, well, a ball. :/ |
|
Linput-3DS friend code: 4725-8494-2702 I'm currently looking for some peeps to make SALLY a website, facebook, and email. If anyone does this u will be mentioned as a producer in the SALLY OS credits! :) | |
| Author | Message |
|
28. Posted: Sat 19th Jan 2013 04:20 GMT sorry linput14 but i only know ANSII art but as i get learning on sprites i could help you then if someone hasnt already |
|
Cameron Stover VVVVVVVVVVVVVV ALSO VVVVVVVV and i like trains (BOOM!) also minecraft and trollface! 3DS Friend Code: 4854-7026-5042 | |
| Author | Message |
|
29. Posted: Sun 27th Jan 2013 01:38 GMT I'm writing tutorials for PetitComputer, and they start with the BASICs (get the pun?) then go to the more complex stuff. Depending on when you read it, it might be unfinished, or done. I'm adding to it as I learn, myself. Here's the URL: http://www.petitcomputerbasic.blogspot.com Also, here's the first part to it, to get you started. But, I won't post EVERYTHING here, just the first part, then you can just visit my blog. PART 1 Learning Some Basic Commands For Your First Program: In this tutorial you will be learning SMILEBASIC, a programming language. SmileBoom says that you are using BASIC, but they're wrong. BASIC is a family of programming languages, many versions that are very similar to each other have been created. SMILEBASIC was created by SmileBoom, but it's very similar to other BASIC programming languages. So, if you were to write a program with something that used another type of BASIC, then you'd probably still be able to understand most of it. So, let's start with the basics (< See the pun there? The programming language is SMILEBASIC.) then we'll keep working up until it gets to the really complex, complicated stuff. So, you're basically about to learn a different language, in fact, you are, this is just a programming language. So, this will be different than just simply learning "Hola" means "Hello." But, once you get the hang of it, and you are able to control your DS and make something happen, you'll feel like you are so powerful, and can do anything with that little stylus in your hand! print "I'm learning my first command!" Don't forget the quotes, because if you just have, "print I'm learning my first command!" then there'll be an error. So, after you've typed this, go into Run mode. Chances are, nothing happened. Well, that's because you need to run your little program you've got started. You can do this by typing, "Run" then pressing the A button, or pressing Enter. Then this should pop up: I'm learning my first command! So there you have it! You did it! But don't worry, if this didn't happen, that's okay. Just go back and make sure you did everything correctly. If you want something other than "I'm learning my first command!" to pop up, then just replace the words below: print "Type whatever you want here" Way to go! You've learned one of the many, many commands on PetitComputer! PetitComputer ver2.2 What this is is just what version of PetitComputer it is, the programming language, how much space is free, and the copyright. Lastly the, "READY" is just stating that the program is ready to operate. If you want to get rid of this, and all other text on your program, type in in run mode: CLS That's all you have to do. Then, all that text will disapear, and only, "OK" will be left. But be careful! It'll get rid of ALL the text, so if there's something important you want to keep, don't do this! (I honestly don't know what you would want to keep on your DS screen though CLS Then go into run mode and run it. Then all you should be left with is: I don't know what to put in these quotes Now that's much neater isn't it? No I'll show you how to save and load your program. First, make sure everything's the way you want it in Edit Mode. Once everything's proofread, go into Run Mode and run it. Then type in: Save "Test" I saved it as "Test" but, you can call it whatever you like. Then to load your program simply type in Run Mode: Load "Test" It's as simple as that! If you forgot your file name, then press the X on the upper right and return to the Home Menu (But make sure you saved your work first if you were doing something; if you don't it'll be lost!). Then click View Gallery and all your programs, along with the sample ones, are in there. So if you called your program "Test" You'll see it as, "PRG : Test". I think that'll be all for the first part of this tutorial! Thank you for reading, I hope this has helped you on your quest to making programs! Try to accomplish this before going to the next part: 1. Clear your screen Edited on Sun 27th January, 2013 @ 01:44 by -Angel- |
|
-Angel- | |
| Author | Message |
|
30. Posted: Wed 20th Feb 2013 05:47 GMT Here are 3 simple ways to slide text window. they simply put(and slide) window on top of grass field(which is rear BG layer). press any button to open and close text window. here is sprite version.
it uses 2 big (64x32) sprites and they act as window. here is Graphic version.
it simply draws white filled box on bottom. here is BG version.
it uses foreground BG layer and use it as window. |
|
ChangeV | |
| Author | Message |
|
31. Posted: Sat 30th Mar 2013 05:41 GMT So @ramstrong said I should put this here instead of on the main thread, so here it goes. I made an auto-formatted dialog-box function set with a demo for Petit Computer. You know when you have a bunch of text that you want to output, but if you just keep printing and printing, it gets cut off at ugly places (like the middle of words) and just doesn't look right? This program is an example of how to make text fit within a box without knowing the contents of said text. This example code contains some functions which allow you to: -Bring up a dialog box @SHOWDIALOGBOX Basically, showing/hiding/clearing/waiting aren't very exciting (but still necessary). The part that really does what you want is MAKEDIALOG. To use MAKEDIALOG, just put the text you want to print into the variable SAY$ and then use GOSUB @MAKEDIALOG. MAKEDIALOG will then "parse" (kind of) the variable SAY$ and figure out where it needs to cut off the dialog and move to the next line, and when it needs to halt and wait for the user to continue when the box is full. YESNOCHOICE can simply be called with GOSUB @YESNOCHOICE. After it is run, the variable CHOICE will contain the user's action. 1=yes, 0=no. The code contains a short demo which shows how to use the various functions and such. The demo will run just by starting the program, so don't feel like you have to add anything in order to see something happen. Feel free to use it for any of your games. The image shown at the top can be done by simply storing the entire saying into the string SAY$, for instance: SAY$="Here is an example of some really long text. This is all just one long thing located in SAY$." Notice that what I actually put in SAY is longer than what appears in the picture. This is because the dialog box saw that it could not fit the entire string into the box, and so it is waiting for user input (A or B) before printing the rest of the contents of SAY$. After you set the variable, just call MAKEDIALOG, like I've done above. Edited on Mon 1st April, 2013 @ 22:36 by randomouscrap98 |
|
randomouscrap98 | |
| Author | Message |
|
32. Posted: Sun 21st Apr 2013 23:42 BST Scolling background under sprite can be accomplished with two two-dimensional arrays. This is accomplished by copying one side of the first array and placing it on the opposite side in the second array. Then copy what is left of the first array. The sprite remains stationary in the center of the screen. This example makes the sprite look like its walking right, but the background is scrolling left under his feet. But, there must be a simpler way? CLEAR: BGCLR: ACLS: SPCLR 'Clean up the screen @MAIN 'SETUP BACKGROUND MAP @BGDATA @COPYMAP @DRAWSP Edited on Sun 21st April, 2013 @ 23:51 by TexMurphy |
|
TexMurphy |
- « Previous
- 1
- 2
- Next »

) So, if you wanted to have everything erased, then some text to pop up you would type this in edit mode:

