@Scientist "If you save your work before crashing SmileBASIC, crashing it will have no affect on your work."
Sometimes a crash means a program starts doing something it's not supposed to. When your software starts to do whatever it wants, there are no guarantees.
the angle the circle pad is pointing is given by:
STICK OUT SX#,SY#
ANGLE#=ATAN(SY#,SX#)
the #s after the variable names means they're realtypes. depending on your code they may or may not be there, it's just how I write it. Keep in mind Y comes first in ATAN. Angle is returned in RADIANS not degrees. 0° is stick pointing left, 90° is up, and so on.
You can't save a string array to a file unfortunately. You could put every entry together into one string with some kind of separator after each one and save it as a TXT though. You would have to load the TXT and split all the parts up to convert them into a string array later.
@Fireflaems you must think you're so clever.
what I'm doing is usually called "feeding the troll" and is generally frowned upon but it's my pedantic duty to inform you the 3DS is not an engine, it is a device. and while SmileBASIC is a tool, it's more of a general BASIC computer simulator with game features than anything else. please at least attempt to be useful and do your research
Petit Computer programs that use anything beyond the most basic features will NOT work in SmileBASIC. Quite a few things are different so you need a complete rewrite.
October 15 2015 yes. but it took them around a year of localization time into English, and they were also working on updates simultaneously. They also had the Ogiri contest, and currently have Wii U, an update for the 3DS, Smile Game Builder, etc. There's a lot on their plate beyond localizing for Europe (which has six langs, as Oscar said)
Let's assume the array is in slot 1 and is named ARRAY, and it's 1D.
We use the functional VAR() keyword to grab a reference to the variable, using its name string.
PRINT VAR("1:ARRAY")[0]
Note that the index brackets come after the VAR function. Assignment works like this too:
VAR("1:ARRAY")[0]=10
Keep in mind that this may not work as intended depending on the way everything is set up.