Display Image on Tap Help Please

Hi guys,

I am very new to Corona SDK, but I am in love with the program.

I need some help and would appreciate it if you guys can help me.

I have 2 images on level1.lua file.

What I would like to do is implement a circle.png image on a certain x and y coordinates on both images on the same time on a tap function.

I would like to get a function to for example get the x and y coordinates of the square on both of the images and then I would like a function that would once the user click on the x and y coordinates then an circle.png image would pop up and stay there till the level is done.

Please see the image that I created in Photoshop to demonstrate what I mean.

I have search the internet for hours, and
cannot find anything.

I really hope you guys can help me.

Thank you in advance.

Hi, dont search the internet !!!

You will find all you need here: https://docs.coronalabs.com/

This is basic stuff which is explained in the very first chapters.

Welcome!  :slight_smile:

Also, check out the sample projects that download with Corona.  That’s a great way to learn the basics through solid examples.  What you are looking to achieve is very modest and won’t pose a challenge once you put time into understanding Corona.

Check out transition.to( ) and object:addEventListener( ) to get started.  

Hi, dont search the internet !!!

You will find all you need here: https://docs.coronalabs.com/

This is basic stuff which is explained in the very first chapters.

Welcome!  :slight_smile:

Also, check out the sample projects that download with Corona.  That’s a great way to learn the basics through solid examples.  What you are looking to achieve is very modest and won’t pose a challenge once you put time into understanding Corona.

Check out transition.to( ) and object:addEventListener( ) to get started.