To use INPUT you need to specify a guiding string, and a variable that'll hold the input.
It follows this syntax...
INPUT <Guiding string>,Variable
So you could do something like...
INPUT "Command: ",CMD$
Thanks. it works really well. but in trouble trying to place sprites...i know how to place them but idk how to make them bigger and place them anywhere i want. its so confusing...help?
il tell you how to place sounds. try typeing in BEEP (Number) and it will play a sound of your choice. you can check the BEEP section on the SMILE button to see what numbers to type in to play that sound. so for example: if you type in BEEP 9...it will play the "Put" sound. got it?
idk...maybe not. if you want it to talk try typeing in TALK "(Type anything you want)". but the TALK only speaks in japanece so if your using english letters then it would say incorrectly. but i heard about a advanced way to pronounce it correctly in english and a way to change the voice so maybe you can talk to advanced users about it. idk. try it.
To change a sprite's location use SPOFS. It follows this syntax:
SPOFS <Management #>,<X coordinate>,<Y coordinate>
So you could do something like this...
SPOFS 1,200,120
...to place sprite 1 at point (200,120).
To scale a sprite (make it bigger) you can use SPSCALE. It follows this syntax:
SPSCALE <Management #>,<X scale>,<Y scale>
Sou you could do something like SPSCALE 1,4,4.
Thats just too confusing. i don't even know what numbers to type in. can you tell me what the numbers mean? like what the first number does in SPOFS? i'm just stumped right now.
I suggest you read this entry of the e-manual:
http://smilebasic.com/en/e-manual/manual35/
Basically, the first number is the sprite's ID. It will be unique for every different sprite and represents it. You use it with pretty much all sprite related instructions.
You assign this ID when calling SPSET. It's the first number you specify.
Coordinates are handled similarly to how they would in a Cartesian plane, with the exception that the Y coordinate is reversed. X goes from 0 to 399, starting from the left side of the screen (left to right). Y goes from 0 to 239, starting from the top of the screen (top to bottom).
here is how to make a command system thingy
@command
input "command- ";command$
if command$ == "end" then print "game is now ending" end
if command$ == "start" then cls print "welcome to the smile quest rp part 1" wait 270 cls print "let's begin" goto @aftercommand
print "sorry that's not a command" goto@command
@aftercommand
On the Direct Mode type in SAVE "(Enter the name of your program.)" and they will be saved and moved into the active forder. you know. with the red checkmark.
the input thing where you type commands, its called a console and i was wandering if you got the idea for making one from my post because i was making one too