Go Back   Android Forums > Android Development > Application Development > App Inventor

test: Reply
 
LinkBack Thread Tools
Old February 1st, 2012, 02:43 PM   #1 (permalink)
New Member
Thread Author (OP)
 
Join Date: Jan 2012
Posts: 10
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default Help on Timer and animation

Im working on a app that uses animation. Ive used the tAIR picture changer codeblock for changing the individual images to simulate the animation, but the tAIR uses a start and stop. once it fires off the action continues untill you tap the screen and stops the action.

Im looking to change the code to fire off for either a certain amount of time or untill it goes thru the images in the list and stops. I have random sounds that fire off each time the screen is touched as well. So the end should be a tap on the screen causes the images to run thru the list -causing animation. And a sound fires off while the animation is going. Then all stops untill i touch the screen again.

here are my codeblocks.
Attached Images
File Type: jpg timer.jpg (125.8 KB, 7 views)

Advertisements
TennFOX is offline  
Reply With Quote
sponsored links
Old February 2nd, 2012, 07:14 PM   #2 (permalink)
New Member
Thread Author (OP)
 
Join Date: Jan 2012
Posts: 10
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Got the answer for those who will need it.

I set the timer of the first clock to 2000 and the timer in the blocks to 2000 and I put the cycletimer=false in the Else do block of the sound timer. So the click goes off and the images run thru while the sound plays then everything stops.
TennFOX is offline  
Reply With Quote
Reply
Tags
animation, timer


Go Back   Android Forums > Android Development > Application Development > App Inventor
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 11:14 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.