I got another one week time to complete my project. I implemented swipe function but now i m struck.
bit.ly/1R2TLDx
the above link is the capx file.i have spawned four tiles using a single sprite and in each tile i displayed animation frame (0,3,6,9).
i have totally 11 frames in tht sprite. when i tap the first tile it should change to next frame,on next tap on t1(tile 1) it should change to next frame but it shouldn't exceed frame 3...after frame it should start from frame 1...like that for tile 2 frames (should b 3,4,5) ;tile 3=(f 6,7,8);t4=(f 9,10,11)......how to do this ?
i made a pseudo code but it not working..
PSEUDO CODE
on tap gesture on block |
while(x<4) | block.color=block.color+1 //color is instance variable
if(x>3) | block.color=block.color-3
| x=0
someone tell me how to make this pseudo code work
and i have another doubt i will post it once i got this cleared ,at the same time i ll try to implement tht myself.