トピック
Josh Littleviking55

Need help programing its so hard...

I really need some help how to make my own game i mean i know a little bit how to program but i need to know more plz someone help!
1そうだね
プレイ済み
返信[1]
親投稿
King 5kittens645
I can help you with a small bit, but i don't have all the time in the world to do so, nor do i have a ton of programming knowledge myself. Let's go over the easiest commands first. So first up, the there is PRINT, which (if the name didn't make it obvious enough) prints text on the DIRECT screen when you run it. (Example) PRINT "Hello world!"
0そうだね
プレイ済み
返信[2]
親投稿
King 5kittens645
You can also modify where the text shows up with LOCATE X,Y (Example) LOCATE 50,3 PRINT "Hello world!" Next, there is CLS, ACLS, and GCLS. CLS clears text from the screen, ACLS clears everything from the screen, and GCLS clears sprites from the screen. (Example) CLS LOCATE 50,3 PRINT "Hello world!" Then there is : (semicolon), Which basically lets you put a bunch of commands on one line.
0そうだね
プレイ済み
返信[3]
親投稿
King 5kittens645
But keep in mind that you have to put : in between every command. (Example) CLS:LOCATE 50,3:PRINT "Hello world!" And then there is ?, which is a shorter version of PRINT (I personally prefer using it). Now lets get into @ (labels). @ is something you can use so have one line of code send you to another line of code using GOTO or GOSUB. (Example) GOTO @2 @Label CLS:PRINT "Hello world!" GOTO @2
0そうだね
プレイ済み
返信[4]
親投稿
King 5kittens645
@2 CLS LOCATE 50,3 PRINT "Hello world!" WAIT 50 GOTO @Label Did you notice the new command i put in? If you didn't, it was WAIT, which waits for however long the number you put after it is. (Example) CLS WAIT 100 LOCATE 50,3 PRINT "Hello world!" Also, i forgot to explain GOSUB. GOSUB sends you to a Label (@), but it can also send you back to the label you were at using RETURN.
0そうだね
プレイ済み
返信[5]
親投稿
King 5kittens645
(Example) @Label CLS WAIT 10 LOCATE 50,3 PRINT "Hello world!" WAIT 60 GOSUB @2 @2 CLS:PRINT "Oops!":WAIT 40:RETURN And that's all that i can teach you for now. Other programmers here will probably give you better examples than i did, but thanks for reading!
0そうだね
プレイ済み
返信[6]
親投稿
Josh Littleviking55
thx this stuff really helped! Im gonna close this now but im gonna make a new discussion right after this make sure to go see it!
0そうだね
プレイ済み