プレイ日記
Ruffles PrinceRuffles36
It keeps telling me there's a synthax error on line 5, looks like BTRIG is the cause. Is BTRIG different now?
3そうだね
プレイ済み
返信[1]
親投稿
Ed CPFace
I believe BTRIG() was replaced with BUTTON(2).
1そうだね
プレイ済み
返信[2]
親投稿
Hunter pHUNTERq
Yup, they removed BTRIG to keep all button input under the same command I assume. You want to be using BUTTON now.
1そうだね
プレイ済み
返信[3]
親投稿
Ruffles PrinceRuffles36
So instead of BTRIG()==, I put BUTTON()==, correct?
0そうだね
プレイ済み
返信[4]
親投稿
Ed CPFace
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()==.
1そうだね
プレイ済み
返信[5]
親投稿
Gale Storm GaleTheStorm
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().
1そうだね
プレイ済み
返信[6]
親投稿
Ruffles PrinceRuffles36
Okay, so it seemed to have worked! Yay! However, it's now telling me that it breaks at 0:4. What?
0そうだね
プレイ済み
返信[7]
親投稿
Ed CPFace
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.
1そうだね
プレイ済み
返信[8]
親投稿
Ruffles PrinceRuffles36
I guess I'll use A. Uh, whats the code for that?
0そうだね
プレイ済み
返信[9]
親投稿
Hunter pHUNTERq
16
0そうだね
プレイ済み
返信[10]
親投稿
Gale Storm GaleTheStorm
16, I believe. IF(BUTTON(2)==16) THEN... Also, start is a break key now? Why? O_o
0そうだね
プレイ済み
返信[11]
親投稿
Ruffles PrinceRuffles36
Thanks!
0そうだね
プレイ済み
返信[12]
親投稿
Ed CPFace
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.
2そうだね
プレイ済み
返信[13]
親投稿
Gale Storm GaleTheStorm
Oh, you can do that? (#A) Cool.
0そうだね
プレイ済み
返信[14]
親投稿
Hunter pHUNTERq
Wow I didn't know the constants, sick!
0そうだね
プレイ済み
返信[15]
親投稿
Ed CPFace
@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.
0そうだね
プレイ済み
返信[16]
親投稿
Hunter pHUNTERq
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.
1そうだね
プレイ済み
返信[17]
親投稿
Ruffles PrinceRuffles36
now it's saying ''Illegal functio call in 0:14(BGFILL). what does this mean?
0そうだね
プレイ済み
返信[18]
親投稿
Ed CPFace
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...
0そうだね
プレイ済み
返信[19]
親投稿
Ed CPFace
... 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.
0そうだね
プレイ済み
返信[20]
親投稿
Ruffles PrinceRuffles36
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...
0そうだね
プレイ済み
返信[21]
親投稿
Ruffles PrinceRuffles36
well, i seem to know some things from this, so ill start a new program and see what i can do. thanks!
0そうだね
プレイ済み
返信[22]
親投稿
Ed CPFace
Good luck! And if you want some examples, make sure you take a peek through the built-in programs.
1そうだね
プレイ済み
返信[23]
親投稿
Darkcon SGMXZYDarkcon354
seem the new way we got to get use too, I notice I keep doing things the old way today :)
0そうだね
プレイ済み
返信[24]
親投稿
Ruffles PrinceRuffles36
How do I do that? It won't let me check the coding for the sample stuff.
0そうだね
プレイ済み
返信[25]
親投稿
Darkcon SGMXZYDarkcon354
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...
0そうだね
プレイ済み
返信[26]
親投稿
Darkcon SGMXZYDarkcon354
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.
0そうだね
プレイ済み
返信[27]
親投稿
Darkcon SGMXZYDarkcon354
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
0そうだね
プレイ済み
返信[28]
親投稿
Darkcon SGMXZYDarkcon354
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.
0そうだね
プレイ済み
返信[29]
親投稿
Darkcon SGMXZYDarkcon354
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
0そうだね
プレイ済み
返信[30]
親投稿
Personau DimpsNinja
Hey what do you know, Gamestart!
0そうだね
未プレイ