Hi. Having an issue where when the chromebook companion app connects, students are able to use the sprite.fling exactly one time. After that, it doesn't register that students are trying to fling the sprite. When we "Reset Companion Screen," it again works exactly one time. If connected to a tablet/phone companion app, it registers every time. Is there something I'm missing?
WHat version of the Companion is on the Chromebook, compared to the one on the phone/tablet?
Chromebook: 2.73
Tablet: 2.65u
Which Flung event are you using,
- Canvas, or
- Sprite?
Can you export and post an aia ?
Sprite flung event.
AC_1_8MoveFast.aia (93.8 KB)
(This is a starter file for students - I realize there are many things that need to be fixed, but the fling should work as is.)
Try turning off the rotates flag for the water balloon sprite.
The Speed attribute gets reinterpreted as a request to rotate in place if it is checked.
I got much more responsive flings after that fix.
I am surprised the flings worked at all before that.
That worked!!! Thank you so much!!
I noticed some strange fling behavior if I did not aim carefully.
The water balloon would recoil backwards, if not aimed well.
I would reconsider your Interval setting, given its tool tip:
If the interval is set to 0, then the water balloon would move every 0 milliseconds, which is very fast.
The interval is usually used to control step size for movement, for fine grained collision detection.
Regarding device sizes and your app's responsive setting in Project Properties, there is a mismatch between using explicit pixel counts for sizes on a Canvas that is set to a proportion of the devices' Height and Width, which get high pixel counts at run time a few milliseconds after screen initialization.
If your sprites act like they are too big or too small, set their sizes in a one shot Clock Timer after the Canvas has settled down to its run time Height and Width.
Try this, with canvas flung instead, and both imagesprites having their origins set to 0.5/0.5
AC_1_8MoveFast (1).aia (93.5 KB)
It does work better with a finger, and you could constrain the fling with some maths...