It looks like you're new here. If you want to get involved, click one of these buttons!
Hi !
I'm totally new to codea (and to prog globally), so I have a problem which might seem stupid but here it is :
I would like an action to be made if someone touch the screen in a particular spot and to stop when he releases his finger.
At the moment I'm using :
if CurrentTouch.state==MOVING then
print("pressed")
end
So when I move my finger around it works, but I'd like it to work with a still finger in a particular spot (a button for example)...
If anyone can help me with this, that'd be great !!
Thanks
Comments
@Toufalex Here's a simple example of a button.
@Toufalex Here's an example that allows you press or to slide your finger across the button.
Great ! Thanks for the quick answer !
I'll have a try and let you know if it worked
Hey !
It worked like a charm ! Thanks
@NatTheCoder You removed one line of code, and tweaked some text?