Gamestudio Links
Zorro Links
Newest Posts
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Trading Journey
by 7th_zorro. 04/27/24 04:42
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 781 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
problem with ent_animate #271981
06/15/09 22:02
06/15/09 22:02
Joined: Jul 2005
Posts: 1,002
Trier, Deutschland
Nowherebrain Offline OP
Serious User
Nowherebrain  Offline OP
Serious User

Joined: Jul 2005
Posts: 1,002
Trier, Deutschland
Has ent_animate changed? I am having problem with a very simple piece of code....

it does not animate even with tried and true models like the warlock...

var anim_cycle;

action guss()
{

player = my;
set(my,SHADOW);
my.material = mat_alphatest;

while(1)
{

ent_animate(my,"run",anim_cycle,ANM_CYCLE);
anim_cycle += 5 * time_step;
anim_cycle %= 100;

my.pan -= mouse_force.x + mouse_force.x;

wait(1);
}
}

..this is very simple, but does not work???? what am I missing?


Everybody Poops.
here are some tutorials I made.
http://www.acknexturk.com/blender/
Re: problem with ent_animate [Re: Nowherebrain] #271998
06/16/09 00:48
06/16/09 00:48
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline
Serious User
MrGuest  Offline
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
no problems here... unless i place a bone in the model? then ceases all vertex animations

using
Code:
	set(my, SHADOW);
	
	while(me){
		
		ent_animate(me, "walk", my.skill1, ANM_CYCLE);
		my.skill1 += 5 * time_step;
		my.skill1 %= 100;
		
		my.pan = mouse_force.x * 2;
		
		wait(1);
	}


other things i can think of (sorry to go through the basics, but the fresh pair of eyes etc...):
you haven't attached the action
the frames are named "run 1" instead of "run1"
you've given the actor a global var for anim_cycle, and too many entities are making it 0 again (yes i'm clutching at straws) laugh

Re: problem with ent_animate [Re: MrGuest] #272013
06/16/09 06:46
06/16/09 06:46
Joined: Jul 2005
Posts: 1,002
Trier, Deutschland
Nowherebrain Offline OP
Serious User
Nowherebrain  Offline OP
Serious User

Joined: Jul 2005
Posts: 1,002
Trier, Deutschland
Yes, of course! the global....thanks..I will go change it....


Everybody Poops.
here are some tutorials I made.
http://www.acknexturk.com/blender/
Re: problem with ent_animate [Re: Nowherebrain] #272014
06/16/09 06:55
06/16/09 06:55
Joined: Jul 2005
Posts: 1,002
Trier, Deutschland
Nowherebrain Offline OP
Serious User
Nowherebrain  Offline OP
Serious User

Joined: Jul 2005
Posts: 1,002
Trier, Deutschland
Well I double checked and it was not the global, it seems to work fine with a global, but sure enough "show bones" was unchecked in MED....problem solved. Thanks.


Everybody Poops.
here are some tutorials I made.
http://www.acknexturk.com/blender/

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

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