이미지가 특정 위치에 선언되어 있습니다.Tap의 이미지에 대한 애니메이션 드롭 다운
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