curve movement from a->b

cgboycgboy Member Posts: 14
edited November -1 in Working with GS (Mac)
I want to have an object coming into the scene from side A and fly to the end of the screen on side B, in a curve line. (like angry birds) I want the object to keep coming into the scene every 2sec, and randomly from the position between 100 and 200 on the y-axis on side A of the screen. and end & destroy once passing side b of the screen and once again the fly path must be within 100 to 200 on the y-axis on the side B of the screen. But the fly path must be in a curve line from A -> B. Can someone help? I am a newbie...

Comments

  • mangaroomangaroo Member Posts: 419
    I tend to do it by changing the motion attributes - u can either use linear motion (x&y) or interpolate (x&y). Best to re-use (by moving the actor back) instead of deleting.
    for random there is a function in the expression editor random(min,max) - 100,200. Also clearly just use timers to get it to come back every 2 seconds

    There is probably a way using a nice sine curve, but im not quite there....
Sign In or Register to comment.