Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (AndrewAMD, TipmyPip), 12,420 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Play animation forward and backward .. #206251
05/12/08 12:07
05/12/08 12:07
Joined: Mar 2008
Posts: 15
B
betuveen Offline OP
Newbie
betuveen  Offline OP
Newbie
B

Joined: Mar 2008
Posts: 15

Hi, I'm using the very old A5's template script for mah game. And I found this code in the animate.wdl, it's for the jumping animation.

 Code:
/////////////////////////////////////////////////////////////////////
		// Animations that can take place standing still (jumping, ducking, etc.)
		/////////////////////////////////////////////////////////////////////
   	// the jumping animation
		if(MY._MOVEMODE == _MODE_JUMPING)
		{
//opt. 			temp2 = 4*INT(((-MY._ADVANIM_TICK)&MASK_ANIM_JUMP_TICKS)>>6);// anim_jump_ticks
 			temp2 = INT(((-MY._ADVANIM_TICK)&MASK_ANIM_JUMP_TICKS)>>4);// anim_jump_ticks
			// calculate a percentage out of the animation time
			temp =  100 * MY._ANIMDIST / temp2;
			// set the frame from the percentage
			ent_frame(anim_jump_str,temp);
			// increment _ANIMDIST by elapsed time
			MY._ANIMDIST += TIME;
			// check to see if we finished jump animation
			if(MY._ANIMDIST > temp2)
			{
				MY._ANIMDIST = 0;
				MY._MOVEMODE = _MODE_WALKING;
			}
			return;
		}


It's cool, but the problem is, my character model have only half of the jumping animation, so I have to play the jump animation forward (from "jump 1" frame to "jump 24"), then backward (from 24 to 1) again to complete the jump.

I'm not a coder so I tried but can't make it work. Would you please help me? Thanks!

Re: Play animation forward and backward .. [Re: betuveen] #206369
05/13/08 08:36
05/13/08 08:36
Joined: Mar 2008
Posts: 15
B
betuveen Offline OP
Newbie
betuveen  Offline OP
Newbie
B

Joined: Mar 2008
Posts: 15
Ok, NVM, I've found a way, copy frames in Med to complete the jump animation.


Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1