Is there anyway to figure out the “X” and “Y” values when inserting inserting an image/object into Corona?
Thanks. [import]uid: 9959 topic_id: 3047 reply_id: 303047[/import]
Is there anyway to figure out the “X” and “Y” values when inserting inserting an image/object into Corona?
Thanks. [import]uid: 9959 topic_id: 3047 reply_id: 303047[/import]
Edit:
I should say, is there an easier way to do that? [import]uid: 9959 topic_id: 3047 reply_id: 8899[/import]
I’m not sure I understand your question. If you insert an image, you have to specify the X and Y values to place the image. That means they’re accessible through whatever object name you’re using, such as object.x and object.y. [import]uid: 1560 topic_id: 3047 reply_id: 8901[/import]
I mean is there an app or a website that allows you to get the X and Y coordinates visually? I would just like to know.
Thanks! [import]uid: 9959 topic_id: 3047 reply_id: 8930[/import]
is there an app or a website that allows you to get the X and Y coordinates visually?
Get the X and Y coordinates of an image in Corona? If that’s what you’re trying to do you can display the coordinates of an image on screen. [import]uid: 1560 topic_id: 3047 reply_id: 8931[/import]
Hi IDevelopApps,
let’s take this scenario, I want to print some text on the screen. Now there are three things I need to know. I need to know the X co-ordinate, the Y co-ordinate and the Text that I want to print.
In the case of the image, you need to know the same, the X and Y co-ordinates, a refresher in basic maths.
The x-axis runs from left to right. so where on the screen do you want the image to be is your x co-ordinate.
The y-axis runs from top to bottom. So where on the screen from top to bottom do you want the image to be is your y co-ordinate.
Now, you can draw your image at x,y where you know how to get the x and the y.
If you are after a program that lets you work with this more like a drawing software, then I reccommend that you try Inkscape and set the mode to pixels and draw placeholders on the screen and get the x,y values off it. I cannot think there is anything easier.
cheers,
Jayant C Varma [import]uid: 3826 topic_id: 3047 reply_id: 9167[/import]
Hey, thanks for the information and the program. Will download it later.
Thanks again for helping! [import]uid: 9959 topic_id: 3047 reply_id: 9178[/import]