Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
How do I add addEventListener for touch on object using script?
as we have mouchdoun event like
but for touch on specific object how can i impalement
thanks in advance
Hi sejal you might get a better response from the scripting forum construct.net/en/forum/construct-3/scripting-51
Moved to scripting forum.
To detect a touch/click on an object, use the normal "mousedown" or "pointerdown" event, convert the touch position to layer co-ordinates with cssPxToLayer, and then use containsPoint method to check if that point overlaps an instance.
Develop games in your browser. Powerful, performant & highly capable.
thank you for reply..it's work and helpful
this is with example of my problem