Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Display Image on Tap Help Please
Started by lizelleam Feb 14 2019 12:40 AM

- - - - -
2 replies to this topic
listener event on tap event new image on another image
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

lizelleam

[GLOBAL: userInfoPane.html]
lizelleam
  • Observer

  • 1 posts
  • Corona SDK

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.

Attached Thumbnails

  • level1 preview on phone.png


[TOPIC: post.html]
#2

anaqim

[GLOBAL: userInfoPane.html]
anaqim
  • Contributor

  • 759 posts
  • Corona SDK

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!  :)



[TOPIC: post.html]
#3

sporkfin

[GLOBAL: userInfoPane.html]
sporkfin
  • Contributor

  • 460 posts
  • Corona SDK

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.  




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: listener event, on tap event, new image on another image