プレイ日記
T Audiodome
the cursor wont move up or down
2そうだね
プレイ済み
返信[1]
親投稿
C. Norris 06495a
Where is invloop?
1そうだね
プレイ済み
返信[2]
親投稿
T Audiodome
above the prints. so when you move it will print everything including the cursor at its new location.
0そうだね
プレイ済み
返信[3]
親投稿
C. Norris 06495a
Does it show an error?
0そうだね
プレイ済み
返信[4]
親投稿
T Audiodome
no it just wont move
0そうだね
プレイ済み
返信[5]
親投稿
C. Norris 06495a
Sometimes you can't use and, try using && for the second and in the condition
1そうだね
プレイ済み
返信[6]
親投稿
T Audiodome
i might be using it wrong. the cursor remains unmoved and my hopes are a little down
0そうだね
プレイ済み
返信[7]
親投稿
C. Norris 06495a
Can you make the case the code public then send me the key?
0そうだね
プレイ済み
返信[8]
親投稿
C. Norris 06495a
"code"
0そうだね
プレイ済み
返信[9]
親投稿
MathPRG MathProgrammer
I think I see the problem. You are telling it to only INCREASE Y if it is OVER 10, so Y will not change until you've moved it down enough, which you can't move it down until you've... moved it down. Try 'IF BUTTON(2) AND #UP AND Y<10 THEN Y=Y+2' and so on. Flip the comparison sign for moving down too. Remember that positive coordinates go down and negative ones go up, too.
0そうだね
プレイ済み
返信[10]
親投稿
MathPRG MathProgrammer
What I mean is tell it to increase Y if Y is UNDER a value, in this case 10. I think you just mixed the comparison operators up a bit :)
1そうだね
プレイ済み
返信[11]
親投稿
T Audiodome
made new post with new image. but here is new code and it still wont work.
0そうだね
プレイ済み
返信[12]
親投稿
MathPRG MathProgrammer
Maybe it's the AND part that's messing it up? Instead of AND, try 'IF BUTTON(3)==#UP AND Y>6 THEN code to execute...' Also, now that I look at it you haven't initialized Y have you? Nothing will tell it what Y should start out as, so when you execute the program Y will be 0, and since you told it to only change when it is between 6 and 10, it won't change. Try putting 'Y=6' right before your loop.
1そうだね
プレイ済み
返信[13]
親投稿
T Audiodome
already did
0そうだね
プレイ済み
返信[14]
親投稿
MathPRG MathProgrammer
Try changing it to 'IF BUTTON(3)==#UP'. Also remember 'BUTTON(3)' triggers once the key is let go. Might be the number of ANDs used.
0そうだね
プレイ済み