Welcome Guest [Log In] [Register]
We hope you enjoy your visit.


You're currently viewing the Ultimate 3D Community as a guest. This means that you can only read posts, but can not create posts or topics by yourself. To be able to post you need to register. Then you can participate in the community active and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.

Join our community!

If you are already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
a little help with frame variable; 'animation end'
Topic Started: Nov 12 2007, 06:21 AM (216 Views)
apathyjoe
Advanced Member
[ *  *  * ]
i wanted a sort of crouching before jumping -

so when the key is pressed, my model jumps to:

first_frame=50
last_frame=60
frame=-1

and then when it REACHES that last frame, it chances to

frame=65

which is the single jump pose.


i do this in 2d gamemaker with animation end...when the animation end is over, it proceeds with the jump action...how can i do something similar using a model like this? when it reaches frame 60, the first_frame, last_frame and frame variables change?


***(I tried if frame=last_frame, but i never thought that would work anyway)

thanks!
Offline Profile Quote Post Goto Top
 
MysteriXYZ
Member Avatar
Master Matrix Masher
[ *  *  *  *  *  * ]
apathyjoe
Nov 12 2007, 06:21 AM
***(I tried if frame=last_frame, but i never thought that would work anyway)

Use GetCurrentFrame() instead of frame.
U3D is like candy; after extensive consumption, it's Best to brush.
Offline Profile Quote Post Goto Top
 
« Previous Topic · Questions about Ultimate 3D · Next Topic »
Add Reply