what's going on with my behaviors?
Ok So I'm trying to tweak out my piano to get it just right.
Behavior-
When touch is -pressed- moveto self.position x ,y position 284
when touch is released - moveto self position x ,y position 297
simply move down when pressed, and return to the spot it was at when released.
Works perfectly on my mac when I test it.
When I test on my phones, it some times just keeps moving either down or up when I press or release and doesn't stop moving and goes right off the screen unless I press it again while it's moving off.
I'm wondering if it's because I'm using different display sizes- testing on 4s and 3gs.
My project size is set to 960x640.
My move speed is set to 300, maybe move it to like 700 so it finishes the move before I release?
Maybe when tapping the keys I release before it's finished moving>..maybe I'm answering my own question as I type.. I'll let you know..lol..
I've been trying a million different solutions, but I'm just curious what's going on.
I could probably make to invisible walls at the top and bottom of the keys and turn on collision, but I really want to understand whats happening instead of just hacking a fix.
Thanks guys!
Behavior-
When touch is -pressed- moveto self.position x ,y position 284
when touch is released - moveto self position x ,y position 297
simply move down when pressed, and return to the spot it was at when released.
Works perfectly on my mac when I test it.
When I test on my phones, it some times just keeps moving either down or up when I press or release and doesn't stop moving and goes right off the screen unless I press it again while it's moving off.
I'm wondering if it's because I'm using different display sizes- testing on 4s and 3gs.
My project size is set to 960x640.
My move speed is set to 300, maybe move it to like 700 so it finishes the move before I release?
Maybe when tapping the keys I release before it's finished moving>..maybe I'm answering my own question as I type.. I'll let you know..lol..
I've been trying a million different solutions, but I'm just curious what's going on.
I could probably make to invisible walls at the top and bottom of the keys and turn on collision, but I really want to understand whats happening instead of just hacking a fix.
Thanks guys!
Answers
So John, I trashed all of the overcomplicate long rules.
I used when-touch-is pressed-playsound-interopolate pos.y
when-touch-is released-interoplate pos.y