12 December 2008 | |
![]() |
|
New Member
Henry Jones
Ulm,
Germany
|
Play Animation at random times
Hi guys,
for my current project it would facilitate my animation process a lot if I could solve my problem with MaxScript. I have several objects of which each has to move to one point and back at a set speed and at random times. Like frog that sits on one side of the street and jumps to the other side and back if he's getting poked. I thought the best way would be to check for a "poke", determine when the object is at the target position, so it wouldn't accept any more "pokes" until it's back at its original position. But then, how do I determine the current position of the object? this.pos does not work since it is a script controller. I'd be glad if someone can shed some light on this. Thanks in advance! Regards, eclaw |
12 December 2008 | |
![]() |
|
Fixer
portfolio
Charles Looker
Snr Technical Artist
Electronic Arts
Vancouver,
Canada
|
Just script it, over time:
-- point and frog must be in different locations
something like this roughly.. __________________
Disclaimer: My opinions are not those of my employer. Last edited by eek : 12 December 2008 at 04:25 AM. |
12 December 2008 | |
![]() |
|
New Member
Henry Jones
Ulm,
Germany
|
Wow! I kinda got it to work on my own (took a few hours, it's my first script), but yours looks much more elegant. Thanks man!
|
12 December 2008 | |
![]() |
|
Expert
|
Thread automatically closed
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities Note that as CGTalk Members, you agree to the terms and conditions of using this website. |
Thread Closed share thread |
«
Previous Thread
|
Next Thread
»
|
|
|