我在某些特定位置声明了图像。下拉水龙头图像的动画
local deselectButton = display.newImage ("images/nutritional info/deselectButton.png")
deselectButton.x = display.contentWidth/2 - 15
deselectButton.y = display.contentHeight/2 - 172
deselectButton.id = "0"
nutriinfo:insert(nutriNavBar)
当我的形象一敲,我要显示另一幅图像。也就是说,每当我点击上面的图片时,第二张图片就会淡入淡出。
local dropDown1 = display.newImage ("images/nutritional info/dropDown.png")
dropDown1.x = display.contentWidth/2 - 75
dropDown1.y = display.contentHeight/2 - 65
dropDown1:setReferencePoint(display.TopCenterReferencePoint)
请注明您需要“下拉”或“淡入淡出”或两者在同一时间.. –
两个在同一时间..我已经回答你的答案在下面。 – Vikr