You are on page 1of 7

ADV-C6

Events

What is it:​ VARIABLES are placeholders or containers which hold or store a value.
Variables are used to store values or information which can be numbers or text.

What we did:
● Using Events to trigger complex on-screen outcomes.
● Understand and apply the appropriate event to build user interactivity.

How we did it: E


​ vents are a great way to allow any person or User using or running your
program to control the program in a way they want to; within predefined code that you as a
programmer has written. Computer programmers use events to build interactive games and
apps.

Step 1:​ First is When Run event, which we have been using in all the classes.

Step 2:​ Programming the When Click event: The When Actor Clicked event triggers code
when you click the sprite or actor object seen on screen.

© 2019 ​The content of this email is confidential and intended for the recipient specified in message only. It is strictly forbidden to
share any part of this message with any third party without a written consent of the sender. If you received this message by mistake,
please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future.
ADV-C6

Step 3: A
​ pply When Run Event to Dog and Cat

Step 4: V
​ ariation of the When event.

Step 5: R
​ epeat block just repeats code statements inside it, and so we used repeat block to
repeat events continuously.

© 2019 ​The content of this email is confidential and intended for the recipient specified in message only. It is strictly forbidden to
share any part of this message with any third party without a written consent of the sender. If you received this message by mistake,
please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future.
ADV-C6

Step 6: p
​ rogram Waddles Penguin to say “Ouch” and indicate it by playing a hit sound
when he runs into Draco dinosaur using touch event. Touch event triggers an action when
characters touch each other on-screen.

Step 7: W
​ hen moving right Waddles penguin runs into Octopus and scores a point

© 2019 ​The content of this email is confidential and intended for the recipient specified in message only. It is strictly forbidden to
share any part of this message with any third party without a written consent of the sender. If you received this message by mistake,
please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future.
ADV-C6

Step 8: C
​ ombine When run event code and other events together

© 2019 ​The content of this email is confidential and intended for the recipient specified in message only. It is strictly forbidden to
share any part of this message with any third party without a written consent of the sender. If you received this message by mistake,
please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future.
ADV-C6

Step 9: w
​ ork on My Profile App and Write your bio.

1. Go to ​www.thunkable.com​ and login.

2.Click on to see your projects and open the previous project


in which you uploaded your profile picture.

© 2019 ​The content of this email is confidential and intended for the recipient specified in message only. It is strictly forbidden to
share any part of this message with any third party without a written consent of the sender. If you received this message by mistake,
please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future.
ADV-C6

3. Click on My_Name

4. Write a SHORT greeting to the user. eg: Hi! I am Tony.

5. Now Select About_Me

6. Write your Bio.

© 2019 ​The content of this email is confidential and intended for the recipient specified in message only. It is strictly forbidden to
share any part of this message with any third party without a written consent of the sender. If you received this message by mistake,
please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future.
ADV-C6

Make sure to include your hobbies, fav sport, fav animal, fav movie star, fav music, fav book,
etc.

7. Download this app and install it on your parents' phone to test how it works.

8. Click on share and generate a link

What’s next?:​ Keep working on this app to make it interactive in the upcoming classes.

© 2019 ​The content of this email is confidential and intended for the recipient specified in message only. It is strictly forbidden to
share any part of this message with any third party without a written consent of the sender. If you received this message by mistake,
please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future.

You might also like