Assuming that his function Get Game Time in Seconds is returning an accurate number in order to determine X Start & X End, you would just add it before the Set Start Position and Set End Position. You would ignore, in your screenshot, the Normalize to Range, the X 2000 and the X Power nodes/variables.
But that would only allow you to do something after the press is done. If you want to do something while the press is occurring, then you would have to set it up differently. You would use the timer from the function Get Game Time in Seconds as is, and you would then add a branch, right after the X Start to see if the press has occurred for at least a certain amount of time. If True, raise flag to do action X, if False, do whatever else. You also have to keep in mind that once the player releases is finger, you will need something on the Release option in order to stop the action being done in the Pressed option if that action occured.
hey maparizeau,
at first thank you very much for sharing your solution!
i’m trying to replicate what you did, but i don’t really understand how you use the enums and the diffrent sets of them. It would be super if you could do a video of the process (you said there is one one your website but i can’t find it) or explain the whole process more in detail. I would be very glad for any help!
at first thank you very much for sharing your solution!
i’m trying to replicate what you did, but i don’t really understand how you use the enums and the diffrent sets of them. It would be super if you could do a video of the process (you said there is one one your website but i can’t find it) or explain the whole process more in detail
thanks a lot mate ,i finally used your code in my project i made it work the screen shoot was really nice with all that comment on the node . thanks again .