what's going on with my behaviors?

artfishartfish Member, PRO Posts: 369
edited May 2012 in Working with GS (Mac)
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!

Best Answer

Answers

  • artfishartfish Member, PRO Posts: 369
    ok I'll try that. Thanks for the quick response!
  • artfishartfish Member, PRO Posts: 369
    @JohnPapiomitis

    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
  • artfishartfish Member, PRO Posts: 369
    @JohnPapiomitis - You are the Man!!! works like a charm!!!
Sign In or Register to comment.