warnings regarding duplicate event handler help

430 views
Skip to first unread message

Liana Smith

unread,
Nov 21, 2017, 12:42:44 AM11/21/17
to MIT App Inventor Forum
I have been having major struggles with the blocks on a specific app I've been trying to make for a school assignment.
We were basing the blocks and design off a video from YouTube where there is a character catching coins using the left and right buttons to move from side to side. 

We have completed a section of the coding that we thought looked exactly like the one on the video, however ours constantly has 'event duplicate handler for this component' error. I understand that in some situations the blocks don't react well when one component has more than one function put together for it, but we are just confused because the person on the YouTube video has identical coding as us and does not experience this problem. I'll attach screenshots of our block coding and the link to the YouTube video below.

https://www.youtube.com/watch?v=EuSUIRdufCg - this is the link to the video we are basing the coding off


It would mean a lot if someone knew how to fix this and was able to help out! We can't continue making our app unless we fix the warnings.


Screenshot (82).png
Screenshot (83).png
Screenshot (84).png

Farzeen Harunani

unread,
Nov 21, 2017, 8:32:34 AM11/21/17
to MIT App Inventor Forum
Hi,
It looks like you have two sets of code for "right.TouchedDown" and "Clock1.Timer". App Inventor doesn't know which set of code you want to run when right is touched down or when the clock timer fires. 
Farzeen
Reply all
Reply to author
Forward
0 new messages