Hash Fellow robcat2075 Posted March 19, 2011 Hash Fellow Posted March 19, 2011 If i want to have an object decrement its Y position every frame I should be able to do a standard value reassignment like Y=Y-1, shouldn't I? Quote
Hash Fellow robcat2075 Posted March 19, 2011 Author Hash Fellow Posted March 19, 2011 I guess the problem is that expressions are continuously evaluated and not once per frame? Quote
mtpeak2 Posted March 19, 2011 Posted March 19, 2011 Why not just key key the -1 on the first frame, then set the post interpolation to accumulate. If you want to use an expression, use the "get time" function. Quote
Xtaz Posted March 19, 2011 Posted March 19, 2011 I don't have A:M here..... but i guess that you must to use the Y-GetTime()... Y-1 ( frame 1) Y-2 ( frame 2) Y-3 ( frame 3) . . . Y-n ( frame n) Quote
Hash Fellow robcat2075 Posted March 19, 2011 Author Hash Fellow Posted March 19, 2011 Yes, I will have to GetTime() Why not just key key the -1 on the first frame, then set the post interpolation to accumulate. This is only the first step in a more involved problem with expressions. Eventually I want to do crowd simulation but the first step is getting something predictable to happen each frame. Quote
mtpeak2 Posted March 19, 2011 Posted March 19, 2011 GetTime()*-24 This expression will translate -1cm every frame (24fps). If the animation is 30 fps, use -30 as the multipler. If you want it to move more than 1cm, add a second multipler. Quote
Xtaz Posted March 19, 2011 Posted March 19, 2011 GetTime()*-24 This expression will translate -1cm every frame (24fps). If the animation is 30 fps, use -30 as the multipler. If you want it to move more than 1cm, add a second multipler. perfect .... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.