Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Titanium 工作室制作音乐游戏。我想将图像视图拖放到不同的位置,并在我将图像视图放在那个位置时听到音频!
您可以检查图像和点的顶部,左侧,高度,宽度值,当它们相交时,铃声:)
//I tought variables are defined. if(!(img_top>spot_top+height) && !(img_top+height<spot_top) && !(img_left>spot_left+width) && !(img_left+width<spot_left) { //intersected action. }