oh so if you put x,y or something like that (with a space in-between) it sets the numbers that come after that, because locate was in the def and cant be used like that or something.. idk.
anyways short vers: its DEF (name, which is L)L X,Y
the X,Y makes it use the two numbers or things after that for a specified thing which is the next thing:
LOCATE X,Y this means that when you put it in it
So I have a question about DEF. I would test it on my 3ds, but I'm a lazy guy.(hope somebody can agree with me on that)
So you said that DEF can be used kind of like goto, and was just trying to figure it out:Example without DEF
@loop
Blah blah
Bla blah blah
If blah ==blah then goto @blah
Goto @loop
So this is what I was thinking it would be like for DEF:
DEF Loop
Blah blah vvv
its DEF (custom name)
then what you want it to do
END
so whenever you write SPH it will do whatever is in the DEF statement, so it knows by what you put inside it.
you can name it ANYTHING you could name it vmfvdhfgnflghldrfgfmldfhgfh and it would still work (as long as you still put the same letters when calling it)
understand?
Not really. DEF is more intermediate-expert code(closer to intermediate). So if you're just starting smile basic, it's probably best to learn other stuff first