troubleshooting Question

How should I register clicks/touches for multiple images in the same location?

Avatar of James Hancock
James HancockFlag for United States of America asked on
Game ProgrammingJavaScript
8 Comments3 Solutions73 ViewsLast Modified:
Hi
I'd like my Javascript phone game to be able to click or touch rectangular objects. The objects will display various different images.

I think it might not be best to register each separate image for interaction, but maybe location coordinates?
Could I make a carrier object where I just change the image displayed in the carrier object? and just register that carrier object for clicks or touch.


I'd display n images / carriers even spaced across the phone/tablet/comp screen for interactions.
I think I saw I a way to enableInteractions on an Object

Id add( up to 100 images) for the gameplay's needs.


Suggestions welcome

Thanks
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 3 Answers and 8 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 3 Answers and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros