Phase • Animations made easy!

I was thinking about the same but, as no one asked for it and adding it would break the current event blocks, I decided not to add it. Now since, you have requested to add IDs, I’ll consider adding it if more people want it.

  • Yes, I want IDs.
  • No, I don’t want IDs.

0 voters

3 Likes

Yes, I’m animating many things at once and I need to detect the animation at end time that which one is ended. So I thought the idea of ID for each animation would be great…

1 Like

How about adding the component and animation technique as parameters in the animation events?
Users won’t have to worry about handling IDs if they can directly equate the components being animated

3 Likes

That sounds like a nice idea. I’ll wait for what others say, though. :slightly_smiling_face:

Also solve my problem :slightly_smiling_face:

The vote result says something :grin::grin::grin::grin:

1 Like

So, considering the poll results, I’ve added the ability to handle events with IDs, Component being animated and Technique used. But like I warned earlier, this update will break the previous blocks and you’ll need to manually replace every broken block. Blocks which are affected are:

Download:

11 Likes

Nice extension, glad your incorporating others’ ideas!

:hugs: We should get to know each other more, maybe stop being [enemies]?

Stay safe :heart:

3 Likes

Hi Shreyash,

I need to zoonin then zoomout then zoomin then zoomout in a loop with duration & speed control of this cyclic loop. How do I do that?

Thanks,
Donald

Hi,
You can do it like this :point_down:
IMG_20200410_220832

Perhaps, not the most efficient way, but it works.

Thank you, Shreyash, I got the idea. It now works great. I also added your extension into MIT App Inventor, it also works well.

However after I added the extension, it was renamed to be Any Phase with all the blocks renamed as well. Are these blocks different from yours. Or was it just a MIT conversion?

Donald

You might have used the blocks from Any Component section. If not, can you please share screenshot of what you are talking about?

2 Likes

I did not say it clearly. Sorry. By using your blocks, it worked fine. But in MIT, when I imported the extension, it also created another extension by adding “any” in front of your extension. I just wanted to know why.

Thanks, Donald

@Donald_Hwong they’re special components which let you access the properties/functions of any such component currently used in the screen, hence the name. I suggest you check out this blog: AITech - Using Procedures and Any component blocks, especially step 4.

3 Likes

Got it. Thank you.

Hi Shreyash, I can not get Animation Pause and Resume to work. Any advise?

WDYM by cannot get to work? You need to be a bit more specific.

2 Likes

Thank you for your quick reply.

Well, when I call Pause Animation, it does not pause. Then of course, I don’t know whether Resume Animation works or not. :slight_smile:

I just tried it and its working as it should. May I please know how you are trying to do it it?

2 Likes

Sorry to have bothered you. I did not call it correctly. It is working fine now.

Thank you as always,
Donald

2 Likes