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
1 registered members (TipmyPip), 18,388 guests, and 6 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
Need help with ent_blend #364519
03/18/11 22:02
03/18/11 22:02
Joined: Jun 2010
Posts: 71
L
LawnmowerMan Offline OP
Junior Member
LawnmowerMan  Offline OP
Junior Member
L

Joined: Jun 2010
Posts: 71
I want to make a nice transition between stand and walk animation. Here is my code:

Code:
function player_animations(){
	my.animation %= 100;
	if (my.animation < 0) { my.animation += 100; }
	
	if (my.state_player == stand) {
		my.animation += 2 * time_step;
		ent_animate (my, "stand", my.animation, ANM_CYCLE);
	} 
	if (my.state_player == run) {
		my.animation += 8.4 * time_step;
		ent_animate (my, "walk", my.animation, ANM_CYCLE); 
	}
}



What should I do? I know I need to use ent_blend but I do not know how to implement this in my code. Some help please

Re: Need help with ent_blend [Re: LawnmowerMan] #364621
03/19/11 15:57
03/19/11 15:57
Joined: May 2009
Posts: 5,377
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,377
Caucasus
Why not ent_blendframe? I'm not sure if it works with C-SCRIPT, but I think it should.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Need help with ent_blend [Re: 3run] #364637
03/19/11 18:26
03/19/11 18:26
Joined: Jun 2010
Posts: 71
L
LawnmowerMan Offline OP
Junior Member
LawnmowerMan  Offline OP
Junior Member
L

Joined: Jun 2010
Posts: 71
Hi 3run. No, ent_blendframe is only for LC.

I'm really stuck with this. Any help plese...

Re: Need help with ent_blend [Re: LawnmowerMan] #364641
03/19/11 18:31
03/19/11 18:31
Joined: May 2009
Posts: 5,377
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,377
Caucasus
Then I can't help dude.. I only can advice you to change to LITE-C, it's really same, but faster and in some ways easier...


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Need help with ent_blend [Re: 3run] #364643
03/19/11 18:43
03/19/11 18:43
Joined: Jun 2010
Posts: 71
L
LawnmowerMan Offline OP
Junior Member
LawnmowerMan  Offline OP
Junior Member
L

Joined: Jun 2010
Posts: 71
Maybe in the future, but for now just _____C-SCRIPT RULE!!!____ grin

Re: Need help with ent_blend [Re: LawnmowerMan] #364644
03/19/11 18:45
03/19/11 18:45
Joined: May 2009
Posts: 5,377
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,377
Caucasus
No it doesn't grin If you were using LITE-C, I could give you simple state machine for animations with blending wink


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Need help with ent_blend [Re: 3run] #364645
03/19/11 18:50
03/19/11 18:50
Joined: Jun 2010
Posts: 71
L
LawnmowerMan Offline OP
Junior Member
LawnmowerMan  Offline OP
Junior Member
L

Joined: Jun 2010
Posts: 71
Thank you 3run but my game is written in C-Script, for now I still do not plan to switch to LC until I finish the current game.

Re: Need help with ent_blend [Re: LawnmowerMan] #364646
03/19/11 18:52
03/19/11 18:52
Joined: May 2009
Posts: 5,377
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,377
Caucasus
OK, but hey dude, if you'll need help with migration into LITE-C, feel free to ask laugh
If you'll want to, I'll even will help you to migrate your current project too.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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