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
4 registered members (AndrewAMD, TipmyPip, NewbieZorro, Grant), 14,196 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
question on entity frame number #476516
03/06/19 11:28
03/06/19 11:28
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline OP
Serious User
pegamode  Offline OP
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
Hey there,

I've got a question according the entity.frame number.

I use bones animation and add some additional animations to the base using ANM_ADD (e.g. talk and blink animations).

I noticed that when I get the current frame number from entity.frame it returns the current frame number of the last added animation.

I'd like to receive always the current frame number from my base animation no matter how many other animations were added. Is there a direct way to achieve this?

Currently I save the value from entity.frame into one of the model's skills after my base ent_animate call as a workaround.

Re: question on entity frame number [Re: pegamode] #476533
03/08/19 08:21
03/08/19 08:21
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
Bones animation has several frame numbers, but entity.frame only stores one. Your workaround is correct, that's the best way to get additional frame numbers.

Re: question on entity frame number [Re: jcl] #476534
03/08/19 08:45
03/08/19 08:45
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline OP
Serious User
pegamode  Offline OP
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
Ok, great.Thanks for the answer.


Moderated by  old_bill, Tobias 

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