Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 20:05
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Grant, dr_panther, AndrewAMD), 1,379 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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 | chip programmers | 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