BUTTON()== will give you information for any button that happens to be held down at the time you call it. If you want the edge information of BTRIG -- that is, you only want to find out about a button at the moment it's pressed -- you use BUTTON(2)== instead of BTRIG()==.
In PTC, I believe BTRIG() had the same function as BUTTON(2) (instant pressed, non-rapid). It kinda was unnecessary. So, yeah use BUTTON(2) to emulate BTRIG().
Oh dear. Yeah, the START button has been taken over. Just like SELECT in PTC was a Break key, Start is now a break key as well. You'll have to figure out a different button to start with.
A is 16. But in fact, there's a clever feature in this version: you can just write it as "#A" for clarity in your code and so you don't have to remember the number or look it up every time. So:
IF BUTTON(2)==#A THEN ...
Type BUTTON on any blank line and tap the ? button in the upper right of the keyboard for a list of all the button codes. Scroll through it with the circle pad while you edit.
@GTAerohog
This is probably the one thing I dislike about this new version so far, as I liked using START for submenus and such. I'm guessing they figured that the START and SELECT were positioned close to the Home button on the standard 3DS and so were more like system keys than gameplay buttons.
Actually if you hold start then run a program, the button command will actually read it. The code for start is 8192.
The only use I can think of is starting a program in some sort of debug mode.
I'm starting to realize this program's been copied line for line from something written in PTC. The syntax for many, many of the commands have changed between the two versions. If this is your own program, you'd do well to spend some time flipping through the documentation at smilebasic.com (particularly the long instruction list) to see what's changed. If this is someone else's program...
... you're going to have a hard time rewriting it in the new system on your own. You might have to retranslate everything on a line by line basis, and the fact that all of the sprite and background graphics have been completely overhauled might make it useless anyway.
Yeah, im using someone elses data.www.gamefaqs.com/boards/663843-petit-computer/63689991
I honestly have no idea what im doing, but i've wanted to do simple coding for a while, and i learn best from examples. so...yeah...
The new way Im typing about is, difference on how the code is wrote. their is some major changes and new functions and getting use to the new interface what seem to be my case on that note...
ok i'm not able to load the ex1text file set active project to default get same thing can not set to AP to sys ok well ill look in on it maybe were doing something wrong. check the manual on load a file maybe some thing were overlooking.
if your not sure how to get to e-manual on desktop of 3ds select smilebasic look at bottom of screen you see manual click it to start the manual.
ok think I figured it out.
in direct mode also called console! you have 4 slot to load a file too. load works almost same way like as with petit computer but more advanced features some what!
to load a grp or prg in petitcomputer you would do it like this
example> LOAD"GRP0:DT0001A",0
it would load with no load dialog screen
now with smile basic a little different on how to see files and on how to load them.... example
on console mode also call direct mode > FILES "//" alows you to see projects also called folders...
if you try it you will see a folder call -> sys <- or you catching on yet. well if your still don't understand i'll show you example
-> LOAD"PRG0:SYS/STAFFROLL",0
Ok what I just told smile basic to do is.
load a file to program slot 0 in directory folder called SYS and a file in folder named staffroll and turn off the load dialog notification... remeber PRG or PRG0 is same for slot0 think well hope all my posts help you all on learning something!..
SGM DarkCon