プレイ日記
★Isaac★ IsaacandEric
Can someone tell me more about what variables do?
1そうだね
プレイ済み
返信[1]
親投稿
MSWS coolestkid123
Variables only hold data. There are 2 types of variables, string and number. A$ is a string variable. A is a number variable. Almost every single program uses variables; wether for stats tracker, know where the player is, count how many enemies are on the screen, etc. Theres also arrays, which can be defined by DIM[Number of "pages"]
1そうだね
プレイ済み
返信[2]
親投稿
MSWS coolestkid123
Again like the variable, they can be either number or string. Think of an array as a book. Eg: BOOK[0]="Hello" BOOK[1]="This is a test" Please look up youtube vids about arrays as they are very useful and I'm not a pro at them.
1そうだね
プレイ済み
返信[3]
親投稿
Aaron Krondelo
Not "number of pages" but, DIM A[N] where N equals the number of elements. A[5] holds 5 separate data values. Arrays are useful and much more useful in loops. IE: If you do: FOR I=0 TO 4 A[I]=RND(10)+1 NEXT This will access each value in the array, A[0],A[1],A[2],A[3], and A[4]. And assign a random number 1-10 to each one.
0そうだね
プレイ済み