プレイ日記
King 5kittens645
Can someone help me with this? I'm trying to make an achievements screen to finish "Would you rather", but i can't wrap my head around this loop. I want it so that when i tap on a sprite, a description of it shows up on the top screen.
3そうだね
プレイ済み
返信[1]
親投稿
*J.P.* DEV NEWPICY3
well what i see it your touch box. the Y is >10 and <10 this mean it cant do it. its like saying you have to be atleast 20 feet forward but not greater then 20 feet (it would be 19 i think) so just make sure the 2nd x or y is always > then the first. (maybe change it to 20..) it works the same as gbox.
0そうだね
プレイ済み
返信[2]
親投稿
King 5kittens645
I guess i'm not understanding what you mean because it still isn't working...
0そうだね
プレイ済み
返信[3]
親投稿
*J.P.* DEV NEWPICY3
ah ok sorry I think I see another problem.. first, the xscreen, this only needs to be put ONCE, at the top of your code, (as you have, but not in the if) cause it just makes the bottom screen available to use, another thing is add a VSYNC (if you don't know, it makes your program run smooth instead of a million frames a second) and lastly theres one other thing. though I will go check in my code
0そうだね
プレイ済み
返信[4]
親投稿
*J.P.* DEV NEWPICY3
to make sure it isn't just placed differently for me. sooo ill brb.
0そうだね
プレイ済み
返信[5]
親投稿
*J.P.* DEV NEWPICY3
btw sorry its taken me longer as im pretty busy but just gottapost it
0そうだね
プレイ済み
返信[6]
親投稿
*J.P.* DEV NEWPICY3
ok so I the vsync is important, this is just a little test thing I made in a few secs. though I would recommend using while/wend loops. they have less "issues", but as I always say only do it if you are ready or at least want to.. anyways I hope this helps.
0そうだね
プレイ済み
返信[7]
親投稿
nobu divine-creator
The effective ranges of the touch operation are more than 5 …. TCY>1 △ TCY>4 〇 And, the second XSCREEN 2 is unnecessary, isn't it? XSCREEN 2:DISPLAY 0   ↓ DISPLAY 0
0そうだね
未プレイ
返信[8]
親投稿
*J.P.* DEV NEWPICY3
exactly.
0そうだね
プレイ済み