Gamestudio Links
Zorro Links
Newest Posts
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
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (7th_zorro, dr_panther), 1,173 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Entities and Actions #203156
04/19/08 23:19
04/19/08 23:19
Joined: Sep 2007
Posts: 8
M
Magela Offline OP
Newbie
Magela  Offline OP
Newbie
M

Joined: Sep 2007
Posts: 8
Is it possible to have an entity with more than one action assigned to it.
For example, if I want a plane to move its propeler and at the same time
I wish for it to chase another plan, can I assign more than one action to it?

Thanks!

Re: Entities and Actions [Re: Magela] #203157
04/20/08 00:03
04/20/08 00:03
Joined: Jan 2008
Posts: 1,580
Blade280891 Offline
Serious User
Blade280891  Offline
Serious User

Joined: Jan 2008
Posts: 1,580
you might need to have the propeler as a seperate model and the plane as another.
You can use a code to add the propeler to the plane model.


My Avatar Randomness V2

"Someone get me to the doctor, and someone call the nurse
And someone buy me roses, and someone burned the church"
Re: Entities and Actions [Re: Blade280891] #203160
04/20/08 03:21
04/20/08 03:21
Joined: Mar 2003
Posts: 4,264
Wellington
Nems Offline

.
Nems  Offline

.

Joined: Mar 2003
Posts: 4,264
Wellington
Sure, create your seperate actions as functions then call them when needed in the aeroplane action.
You can have a s many as you want really.

action aeroplane
{
...
while(1)
propeller():
...
}

Re: Entities and Actions [Re: Nems] #204382
04/28/08 23:52
04/28/08 23:52
Joined: Sep 2007
Posts: 8
M
Magela Offline OP
Newbie
Magela  Offline OP
Newbie
M

Joined: Sep 2007
Posts: 8
Thanks so much for the information!
What about if one og my entities has default animation
(Such as a moving propeler), how do I retain this behavior
while adding additional actions to it?

Thanks,

Magela

Re: Entities and Actions [Re: Magela] #204385
04/29/08 00:14
04/29/08 00:14
Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
tompo Offline
User
tompo  Offline
User

Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
You may do this with one model... just create bones at pivot center of each propeller, attach verticles and use ent_bonerotate function.
Or do it with different models using vec_for_vertex to attach models then change roll or use simple animation.
Hope will helpful \:\)


Never say never.

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