Constrain actors position on y axis to where my finger touches screen

bkhoward2001bkhoward2001 Member, PRO Posts: 86

I have the actor currently constrained to the y axis of where I finger goes once I have place it on top of actor; however, I want to be able to run my finger up and down anywhere on screen and the actor follows my y axis position without me actually being on top of actor.... How do I do this?

Also, on a button, how do you dictate the touch area? It seems like you have to touch it dead center to trigger event.. is the touch area configurable or is it set?

Comments

  • SocksSocks London, UK.Member Posts: 12,822

    constrain y position to mouse y

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    Each actor has a Physics attribute called Collision Shape that can be set to Rectangle, Circle, or Custom. This effects its touchable region.

Sign In or Register to comment.