2014년 12월 14일 일요일

Display Image on Spite

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,iVBORw0KGgoAAAANSUhEUgAAAk8AAAIRCAYAAABTQ1npAAAgAElEQVR4XuxdB3hU1dZd6b1XkpAEQgADCILSJUIQJCrNqIgPgggoRUGaKAKCBEEQAQVU0EfwUcQggv4UBaT3XkIgIUAKaaT3SfvPvTOTzEym3CkJCdnXzw+YOWWfdc69d83e6+xjVMUu0EUIEAKEACFACBAChAAhIAgBIyJPgnCiQoQAIUAIEAKEACFACPAIEHmihUAIEAKEACFACBAChIAWCBB50gIsKkoIEAKEACFACBAChACRJ1oDhAAhQAgQAoQAIUAIaIEAkSctwKKihAAhQAgQAoQAIUAIEHmiNUAIEAKEACFACBAChIAWCBB50gIsKkoIEAKEACFACBAChACRJ1oDhAAhQAgQAoQAIUAIaIEAkSctwKKihAAhQAgQAoQAIUAIEHmiNUAIEAKEACFACBAChIAWCBB50gIsKkoIEAKEACFACBAChABPnnJycpCfn4/CwkJUVlbyqDg5/cb/mZ39ulqUqJxyeAgXwqWx3Udubm7g/qeLECAECAFCQD0CRnfu3KkqKyuTK8W9+KWkSfbvik1ROeXEknAhXKTEqTHdR6amk4g80RuDECAECAEBCBjdvHmzSracMrJEn4k9cYpeOPqMcFEkSdJ7qTGuDV/fDNjaBgt4bFARQoAQIASaNgJGDx9+XtWYfh2rCiOSt4e8PY3R29OQ1jOF7Z
------------->
1aLJ1OSFxlPhLWL8DWuFJMVaN5ytzNgTw9vIJdv8UhS24U3e1nwqOXqco8c3vpqy6PeoOr41ziIXSBWZkI4lYk2EPmKhqzMHe2A8yakrk6uRnL93
...





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...


댓글 없음:

댓글 쓰기