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,633 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
Having trouble with animation... #10546
10/03/02 09:20
10/03/02 09:20

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



I am not quite get how to make it so when I like push the space bar or the control key it would make my charictar swing his sword?? And his sword is not attached it is part of him(the model) how woul I do this??

Re: Having trouble with animation... #10547
10/03/02 22:10
10/03/02 22:10
Joined: Sep 2002
Posts: 307
United Kingdom
dragon100 Offline
Senior Member
dragon100  Offline
Senior Member

Joined: Sep 2002
Posts: 307
United Kingdom
hi

in order to do this you could use a condition such as "if (key_space==1)" in your entities action to initiate the animation where he is swinging the sword once space bar is pressed.

and then adding ent_cycle(the animation) after the condition.

Ent_cycle would have to be within a loop.

You would also have to set a condition which will make the sword animation stop.

Re: Having trouble with animation... #10548
10/08/02 03:58
10/08/02 03:58

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



That was mostly correct. However, use ent_frame not ent_cycle. Look up ent_frame in the C-Script manual for more details.


Moderated by  HeelX, Spirit 

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