{"id":1428,"date":"2022-08-30T15:16:27","date_gmt":"2022-08-30T15:16:27","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/16\/make-a-fluid-animation-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:16:27","modified_gmt":"2022-08-30T15:16:27","slug":"make-a-fluid-animation-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/make-a-fluid-animation-collection-of-common-programming-errors\/","title":{"rendered":"Make a fluid animation-Collection of common programming errors"},"content":{"rendered":"<p>I have 16 images that represent someone throwing a ball. I want to make a fluid animation with these images. With 20 images\/s the eye thinks it&#8217;s a movement and not a succession of images. So I want to display 1 image every 50ms<\/p>\n<pre><code>public void fire() {\nfinal ImageView image3 = (ImageView) gameactivity.findViewById(R.id.imageView3);\nfinal int drawables[] = new int[] {R.drawable.fire1,R.drawable.fire2,R.drawable.fire3,R.drawable.fire4,R.drawable.fire5,R.drawable.fire6,R.drawable.fire7,R.drawable.fire8,R.drawable.fire9,R.drawable.fire10,R.drawable.fire11,R.drawable.fire12,R.drawable.fire13,R.drawable.fire14,R.drawable.fire15,R.drawable.fire16};\nfor (int i=0;i<\/code><\/pre>\n<p id=\"rop\"><small>Originally posted 2013-11-16 20:50:51. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I have 16 images that represent someone throwing a ball. I want to make a fluid animation with these images. With 20 images\/s the eye thinks it&#8217;s a movement and not a succession of images. So I want to display 1 image every 50ms public void fire() { final ImageView image3 = (ImageView) gameactivity.findViewById(R.id.imageView3); final [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1428","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1428","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=1428"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1428\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=1428"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=1428"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=1428"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}