{"action":"created","issue":{"url":"https://api.github.com/repos/jmoenig/Snap--Build-Your-Own-Blocks/issues/786","labels_url":"https://api.github.com/repos/jmoenig/Snap--Build-Your-Own-Blocks/issues/786/labels{/name}","comments_url":"https://api.github.com/repos/jmoenig/Snap--Build-Your-Own-Blocks/issues/786/comments","events_url":"https://api.github.com/repos/jmoenig/Snap--Build-Your-Own-Blocks/issues/786/events","html_url":"https://github.com/jmoenig/Snap--Build-Your-Own-Blocks/issues/786","id":71381337,"number":786,"title":"BUG: Adding 'warp' blocks causes pen draw flickering","user":{"login":"deader69","id":11916590,"avatar_url":"https://avatars.githubusercontent.com/u/11916590?v=3","gravatar_id":"","url":"https://api.github.com/users/deader69","html_url":"https://github.com/deader69","followers_url":"https://api.github.com/users/deader69/followers","following_url":"https://api.github.com/users/deader69/following{/other_user}","gists_url":"https://api.github.com/users/deader69/gists{/gist_id}","starred_url":"https://api.github.com/users/deader69/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deader69/subscriptions","organizations_url":"https://api.github.com/users/deader69/orgs","repos_url":"https://api.github.com/users/deader69/repos","events_url":"https://api.github.com/users/deader69/events{/privacy}","received_events_url":"https://api.github.com/users/deader69/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-04-27T19:38:59Z","updated_at":"2015-04-29T00:58:50Z","closed_at":null,"body":"http://snap.berkeley.edu/snapsource/snap.html#present:Username=deader-tcssm&ProjectName=body_BUG_redraw_warp_flicker\r\n\r\nThis character's limbs flicker. They're drawn with pen commands, inside the 'redraw' sprite.\r\n\r\nThe flicker goes away if you remove the 'warp' blocks, which I (mis)used for clarity, to divide the script into four sections, one for each limb. \r\n\r\nJens, you'll recognize this is the same project as before, which you fixed with a 'redraw' method defined inside each sprite of each limb. That solution worked great, but I decided using 'ringify' and 'run' was too complex for my 9 year old beginners... and I realized that I no longer needed separate Sprite objects for each limb anyway, since we replaced their bitmaps with pen commands.\r\n\r\nSo I consolidated all limb drawing to one point inside the 'redraw' sprite. Much simpler for my students to understand. It works fine, except when I put those 'warp' statements in.\r\n\r\nIf you NEST the warps, it'll also be fine, flicker-free. Does 'warp' somehow do an implicit 'wait'? I don't understand why it would cause flickering, I would think it'd be semantically equivalent."},"comment":{"url":"https://api.github.com/repos/jmoenig/Snap--Build-Your-Own-Blocks/issues/comments/97276450","html_url":"https://github.com/jmoenig/Snap--Build-Your-Own-Blocks/issues/786#issuecomment-97276450","issue_url":"https://api.github.com/repos/jmoenig/Snap--Build-Your-Own-Blocks/issues/786","id":97276450,"user":{"login":"jmoenig","id":2596285,"avatar_url":"https://avatars.githubusercontent.com/u/2596285?v=3","gravatar_id":"","url":"https://api.github.com/users/jmoenig","html_url":"https://github.com/jmoenig","followers_url":"https://api.github.com/users/jmoenig/followers","following_url":"https://api.github.com/users/jmoenig/following{/other_user}","gists_url":"https://api.github.com/users/jmoenig/gists{/gist_id}","starred_url":"https://api.github.com/users/jmoenig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmoenig/subscriptions","organizations_url":"https://api.github.com/users/jmoenig/orgs","repos_url":"https://api.github.com/users/jmoenig/repos","events_url":"https://api.github.com/users/jmoenig/events{/privacy}","received_events_url":"https://api.github.com/users/jmoenig/received_events","type":"User","site_admin":false},"created_at":"2015-04-29T00:58:50Z","updated_at":"2015-04-29T00:58:50Z","body":"@deader69 @bb010g please, set your preferences to \"prefer smooth animations\" when creating interactive multi-sprite games that you want to run the same on every computer. The scheduling is then taken care of by Snap (I seem to remember pointing this out a couple of days ago...)"}}