I have a small routine I need written for Corona. I have the Pro version and can do a lo ton it but I cannot figure this out. Below is the post I am about to put on the forum. Let me know if you are interested in doing the routine for me and your price.
Thanks,
Warren
I have a sample of a small project written in Corona Labs SDK. It uses the GPS as a compass to determine the heading. I am then moving an image on the screen based on the heading. But this is not working like I want. What I want to do is call a sub to place an plane an image at a degree of the compass. For example, in the app I have a graphic image of a jet and a boy clipart (bully). I would like to have a sub written where I pass the following:
Sub PlaceImage(image, Degree)
--Set the image on the screen at the degree based on the current heading)
end
So if I pass image1, 0 it will place the image at degrees 0. And when I move the phone to point to 0 I see the image. And if I then move to the right where I am pointing to 5 degrees the image will be to the left of the center of the screen. I need this to be set in the local updateCompass = function( event ) so it is fast. This is where I tried setting the image.
Basically if I am facing 0 degrees North and am image is set to 180 then I should be able to spin around with the device and eventually see the image come on to the screen as I get closer to 180, then see the image in the center of the screen when I am 180 and then see it going off the screen as I past 180. So I want the images to move in relation to the degrees. There can not be any delays in it.
Please let me know if you can do this. I normally offer freelance work through oDesk but trying here also.
Thanks,
Warren