Hash Fellow robcat2075 Posted March 19, 2011 Hash Fellow Share 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 Link to comment Share on other sites More sharing options...
Hash Fellow robcat2075 Posted March 19, 2011 Author Hash Fellow Share Posted March 19, 2011 I guess the problem is that expressions are continuously evaluated and not once per frame? Quote Link to comment Share on other sites More sharing options...
mtpeak2 Posted March 19, 2011 Share 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 Link to comment Share on other sites More sharing options...
Xtaz Posted March 19, 2011 Share 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 Link to comment Share on other sites More sharing options...
Hash Fellow robcat2075 Posted March 19, 2011 Author Hash Fellow Share 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 Link to comment Share on other sites More sharing options...
mtpeak2 Posted March 19, 2011 Share 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 Link to comment Share on other sites More sharing options...
Xtaz Posted March 19, 2011 Share 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 Link to comment Share on other sites More sharing options...
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.