May 23, 2012, 02:41:12 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Please report any bugs or issues that you might be encountering with the Beta in the Support System so that we can better keep track of any oustanding issues that may come up.

GameCore Support System
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to change animation in .opr file or script file ???!!!  (Read 478 times)
arham eskafi
Newbie
*
Posts: 1



View Profile
« on: November 22, 2009, 04:20:05 AM »

Hi , my dear friends.
i will created new animation in 3dmax , and import in game core.
i will changed the .opr file command to this format :

# -------------------------------------------------------------

OPRP

LoadObject Man.ms3d

LookAtCenter 0.0000 1.5000 0.0000

# Animation

AlwaysAnimate 1

AddAnimRange 0.3000 2.2000 1 Idle
AddAnimRange 2.2000 3.3000 1 Walk
AddAnimRange 9.6000 10.7500 1 Jump

# Motions

AddMotion IdleMotion
MotionAnim Idle
MotionSelectVar Velocity
MotionSelectMin -1
MotionChannel -1

AddMotion WalkMotion
MotionAnim Walk
MotionSelectVar Velocity
MotionSelectMin 0
MotionChannel -1

AddMotion Move
MotionAnim WalkMotion
MotionAnim IdleMotion
MotionChannel 0
# -------------------------------------------------------------

now i want to change my charcter animated to jump animation and go back to (idlemotion) i tested all of think in my mind but i can't solve my problem ....

please check this command :

# -------------------------------------------------------------

AddMotion JumpMotion
MotionAnim Jump
MotionSelectVar Velocity
MotionChannel 0

AddMotion Jump
MotionChild JumpMotion
MotionChild IdleMotion
MotionChannel -1

# -------------------------------------------------------------
 Huh Shocked
Help MeeeEEE! Tanx  Roll Eyes
Logged
pixel_legolas
Hero Member
*****
Posts: 786


View Profile
« Reply #1 on: November 23, 2009, 05:47:17 AM »

Well if you delete all Addmotion commands you can try and see what happens.

The AddMotion command blends animations and need some setups with velocity.

But for trying take it away.

I see that you have not specified velocity in addmotion that I use. At 0 you have idle, at 0.5 you have walk and at....4 maybe you have run. I don't know how to add Jump to that.
Logged
Pages: [1]
  Print  
 
Jump to:  

 
Powered by MySQL Powered by PHP bluBlur Skin © 2006, hbSkins
Powered by SMF 1.1.14 | SMF © 2006-2011, Simple Machines LLC
Valid XHTML 1.0! Valid CSS!