プレイ日記
BeefJerkey SuperBeefJerkey
Need help with sprite collision detection. It won't take line 118.
0そうだね
プレイ済み
返信[1]
親投稿
BeefJerkey SuperBeefJerkey
Actually no, it's line 119.
0そうだね
プレイ済み
返信[2]
親投稿
BeefJerkey SuperBeefJerkey
Oh, it IS 118.
0そうだね
プレイ済み
返信[3]
親投稿
Squash glennxserge
You are assigning PTWOHIT, in what looks like a comparison operation. Maybe you meant: IF PTWOHIT==TRUE THEN...
0そうだね
プレイ済み
返信[4]
親投稿
Perska Perska02
For IF you have to use ==. = is for assignment, and == will check if the given two parameters are equal. IF PTWOHIT==TRUE THEN 'code here. Also, consider using multi-line IFs: IF PTWOHIT==TRUE THEN 'code here 'more code here 'etc. ENDIF Also, PRINT "TEXT ":VARIABLE is invalid syntax. Replace the : with a ;.
0そうだね
プレイ済み
返信[5]
親投稿
BeefJerkey SuperBeefJerkey
OH YEAH... The double '='... I can't believe I forgot! Thank you!
0そうだね
プレイ済み
返信[6]
親投稿
BeefJerkey SuperBeefJerkey
Oh! And THAT'S why it wouldn't print the text! And I didn't know you could assign multiple commands to one IF...THEN... string! Thanks again!
0そうだね
プレイ済み
返信[7]
親投稿
BeefJerkey SuperBeefJerkey
When I tried the milti-line IF thing you told me about on the P1KICK command, the player doesn't kick anymore. And it doesn't seem to be detecting the collision between P1's sword (10) and P2 (1).
0そうだね
プレイ済み
返信[8]
親投稿
Perska Perska02
Oh? Can you show your code? Something might be written wrong.
0そうだね
プレイ済み
返信[9]
親投稿
BeefJerkey SuperBeefJerkey
Oh.. I already went back to what I had before... But can you see my latest post? New problem... Again...
0そうだね
プレイ済み