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
0 registered members (), 18,561 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
animation from outside the action... #171920
12/09/07 10:45
12/09/07 10:45
Joined: Nov 2007
Posts: 50
C
Chaeon Offline OP
Junior Member
Chaeon  Offline OP
Junior Member
C

Joined: Nov 2007
Posts: 50
hello people

For reasons of neatness and clarity I'm trying to set the animdist and frame group of my player entity (mei_mo) from a rather lengthy function called by a key press (instead of the player entity's action). In some desperation I tried

you = ptr_for_name("mei_mo");
ent_frame("Drift",you._animdist);
you._animdist = wind * (100 / spar4[0]);

I thought it wouldn't work though, and obligingly it didn't. I really don't have any idea how to solve this sort of problem. please help

im using the older A5 standard


I HEART 3DGS
Re: animation from outside the action... [Re: Chaeon] #171921
12/09/07 10:48
12/09/07 10:48
Joined: Jul 2007
Posts: 163
c:\Germany\Bavaria.exe
G_Tos Offline
Member
G_Tos  Offline
Member

Joined: Jul 2007
Posts: 163
c:\Germany\Bavaria.exe
what error message is shown when you compile the game?


Spiele zu spielen ist Übung, sie zu machen Kunst!(Zitat)

Re: animation from outside the action... [Re: G_Tos] #171922
12/09/07 15:51
12/09/07 15:51
Joined: Jan 2006
Posts: 968
EpsiloN Offline
User
EpsiloN  Offline
User

Joined: Jan 2006
Posts: 968
When I was learning MP programming I did something similar. Because in MP when an ent is created its action is running on server , you cant use the action on the clients. What I did :
Created a loop in main()
In this loop every 1 second it checks if an entity is still unanimated (created between the two checks). This is done by going thru all entities with ent_next and checking their 'am_i_animated' skill.
If it is , set its skill 'am_i_animated' to 1 and start a function
animate_me(entity)

Its very simple this way


Extensive Multiplayer tutorial:
http://mesetts.com/index.php?page=201
Re: animation from outside the action... [Re: EpsiloN] #171923
12/10/07 02:28
12/10/07 02:28
Joined: Nov 2007
Posts: 50
C
Chaeon Offline OP
Junior Member
Chaeon  Offline OP
Junior Member
C

Joined: Nov 2007
Posts: 50
animate_me? ookay i don't really get it, and I'm not even sure that it applies to A5 standard, but it gave me another idea and now mei_mo is working perfectly, so thanks.


I HEART 3DGS

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