Hey
So i have this moon and i want it to move in a curve (like a parabola).
(you know - like how all moons move in the sky)
I've tried using "translate" but cant seem to do it.
Any ideas?
Label: corona android iphone ipad building error inmobi problem display screen View image tableView failed object physics touch button game lua config event listener |
Moon following a curve
Hello,
In short, you need to take the RA and Dec of the position of the moon and convert it to a X & Y position relative to the center of your curve. Then take these position data points and scale them to your view-port dimensions.
Here is a link to a starting place for information: http://stjarnhimlen.se/comp/ppcomp.html
There are many more. good luck
Keith
Hey ---
This may help a bit: moving an object on a fixed path...
http://developer.anscamobile.com/forum/2011/08/21/object-moves-defined-path-example
EDIT:
This is what we are looking for...
http://developer.anscamobile.com/content/animation
thanks for the info but im kinda new to this programming thing so could you elaborate a bit more?
thank you
I haven't tried this yet -- and not sure exactly what to do -- but let's see if we can break it down...
Once you have your image inserted, you want to make it move...
The path you want to make the image move in is like a curve...like a moon going through the sky. I picture a parabola... like the graph of the equation [y = -x^2 + 4] or on a widescreen, something less steep like y=-.2x^2 +4 ... type those in on a graphing calculator online to see which one you like best.
Insert your moon, set it's motion to that parabola, give it a velocity, and there you go.
I'm not exactly sure how to do this, but this thread should point you in the right direction.
send message and call to a person
Forum: Report Spam + PM
[INSTALL_PARSE_FAILED_NO_CERTIFICATES]
[SOLVED] Director ERROR: Failed to execute new( params ) function on 'screen1'
Too many (200) local variables
Corona SVG Level Builder released. Drag and drop physics level editor with Inkscape and SVG.
Small bug in Collectible Items example
Pivot Joints and apparent elasticity
Can't make removeSelf() delayed
scolling and zooming images
Destroying multiple objects simultaneously with each turning into explosion object leaving each time to animate
Polar coordinates?
Are physics dyamically scaled?
I want to subscribe, but I have a question, need answer, thanks
Touch and memory bug?
How to prevent spawned objects from overlapping?
Help with Particle Candy and Animation
Proud to announce!!! -- Turkeys Revenge