PioneerApp function

In Unit 6(A) Lesson 13 Bubble 8, there is a function PioneerApp that is called, but not defined. I’m assuming the definition is somehow hidden from the code students can see. I have a student who would like to use the assistive technology from this bubble in his Innovation Project, but we don’t know how to define it. Can anyone help?!

Hi @shannon_spisak,

Hmmm…I am pretty sure PioneerApp is a way to point to the object that is the app. I don’t think we can see that and that it is why it was done for us. I tried to use “this.isClicked()” but that didn’t work.

I did recreate the app so it works by just checking to see if the x & y position of the pointer is within 30 pixels or so of the of the x & y position of the first image and if it is, then using setScreen to open the right screen. Would probably need to play with my numbers but I was able to open the Victoria screen when the pointer was under the Victoria image and I clapped but not when the pointer was in the starting position and I clapped (if that makes sense). FYI - when I ran the app with the accelerometer, the pointer goes behind the buttons. I didn’t play with the order of the app elements but that should fix it. Here is my app without the accelerometer code since students should be working to figure that out. But, teachers can find that code in the exemplar.

If others have ideas, please share!

Hope that helps
~Michelle