プレイ日記
MathPRG MathProgrammer
(Almost) full screen mode! Yes, I will be making arrow buttons that point the other way. I have a question regarding sprite collision - what determines the priority of the collision that SPHITSP picks up? I have the white and black keys here, and the black ones are seperate sprites that sit on top of the white ones and are, of course, supposed to play their own notes.
2そうだね
プレイ済み
返信[1]
親投稿
MathPRG MathProgrammer
The problem is, only the white keys are detected - unless, of course, the white keys are removed, in which case the black ones work fine, so the problem must be priority. The control number of each black key is one greater than the previous white key, if that helps. The black keys are also at -32 in Z.
0そうだね
プレイ済み
返信[2]
親投稿
Heres what I would suggest- First, Move the white keys off screen before checking for the black ones. Next, move them back to their original spot. Finally, if none of the black keys ones were pressed, check for the white keys.
0そうだね
プレイ済み
返信[3]
親投稿
MathPRG MathProgrammer
Perhaps - I'll experiment. SPHIDE and SPSHOW should do pretty much the same thing.
1そうだね
プレイ済み
返信[4]
親投稿
MathPRG MathProgrammer
Figured it out - apparently lower management numbers are treated as priority with collision, so I changed the order of which the keys are set.
1そうだね
プレイ済み
返信[5]
親投稿
Awesome!
0そうだね
プレイ済み