Home 4 › Forums › iOS / tvOS Starter Kits › The Story Tellers Kit 2 for iOS or tvOS Apps › Run an Animation using Tap Controls
This topic contains 5 replies, has 2 voices, and was last updated by Scott 1 year, 6 months ago.
I have recently begun exploring swipe and tap controls for moving a character around the scene. While swipe has proven relatively easy, I am wondering if there is a way that I missing to Start or Stop an animation via tap controls.
Thats something you could do with Event Listeners and setting values, think… State=stopped vs State= running).
But I think a simpler way to do this is to make the character run when touched down, and stop on touch up.
To be exact thats the TouchEvent and TouchUpEvent properties.
Thank you for the reply!
Just to clarify, would the character element need to be touched? From my understanding, the tap controls work based on proximity to the character, so not need a direct touch to move.
Am I able to run a TouchEvent that activates the animation simply based on touch on the screen, or does there have to be direct contact with Character Element.
Apologies in advance if I am missing something simple here.
It could be anything that triggers it. So it could be the character or it could just be some piece of background art.
Thanks for the clarification, I am more clear on how I can approach it now.
I appreciate the reply!
You must be logged in to reply to this topic.
Know what an affiliate program is? You make money just by sharing links to our site! Win. Win.
Earn when you refer any buyer here! 30 day tracking. Commissions are 33%-50% and recur on subscription products!
Uh oh, missing your affiliate ID. Create one real quick