hi I am trying to display an Images on image sprite . i initialized it to to the first the image in list then used if block. it works fine but it is really tedious so i tried adding+ 1 to index every time sprite was touched but it wouldn't work. any tips? <img src="data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAk8AAA IRCAYAAABTQ1npAAAgAElEQVR4Xuxd B3hU1dZd6b1XkpAEQgADCILSJUIQJC rNqIgPgggoRUGaKAKCBEEQAQVU0Efw UcQggv4UBaT3XkIgIUAKaaT3SfvPvT OTzEym3CkJCdnXzw+ YOWWfdc69d83e6+ xjVMUu0EUIEAKEACFACBAChAAhIAgB IyJPgnCiQoQAIUAIEAKEACFACPAIEH mihUAIEAKEACFACBAChIAWCBB50gIs KkoIEAKEACFACBAChACRJ1oDhAAhQA gQAoQAIUAIaIEAkSctwKKihAAhQAgQ AoQAIUAIEHmiNUAIEAKEACFACBAChI AWCBB50gIsKkoIEAKEACFACBAChACR J1oDhAAhQAgQAoQAIUAIaIEAkSctwK KihAAhQAgQAoQAIUAIEHmiNUAIEAKE ACFACBAChIAWCBB50gIsKkoIEAKEAC FACBAChABPnnJycpCfn4/ CwkJUVlbyqDg5/cb/ mZ39ulqUqJxyeAgXwqWx3Udubm7g/ qeLECAECAFCQD0CRnfu3KkqKyuTK8W 9+ KWkSfbvik1ROeXEknAhXKTEqTHdR6a mk4g80RuDECAECAEBCBjdvHmzSracM rJEn4k9cYpeOPqMcFEkSdJ7qTGuDV/ fDNjaBgt4bFARQoAQIASaNgJGDx9+ XtWYfh2rCiOSt4e8PY3R29OQ1jOF7Z
------------->
1aLJ1OSFxlPhLWL8DWuFJMVaN5ytzN gTw9vIJdv8UhS24U3e1nwqOXqco8c3 vpqy6PeoOr41ziIXSBWZkI4lYk2EPm KhqzMHe2A8yakrk6uRnL93
...
My wording was poor . When i touch image sprite using the if then block it works fine but it is tedious. But if use the block it doesn't work and image sprite just disappears when it is touched.
I saw the problem when i posted it so i changed the block to [ but it only displays the image when after each touch for 3 times then it disspears.
blocks for above post
why are you setting the image sprite size in every if statement when you're never actually changing the size?
to change size of pic but i see your point . I could have done it once
Enis can you delete this post so i can do another post?it is not to the point.
Sure...
댓글 없음:
댓글 쓰기