GameSalad

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

bkhoward2001bkhoward2001 Posts: 86Member, PRO

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.Posts: 12,821Member

    constrain y position to mouse y

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

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

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Sign In or Register to comment.