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
stucking with adding of an action #385505
10/19/11 08:33
10/19/11 08:33
Joined: Oct 2011
Posts: 1
Tasmania
M
moviez Offline OP
Guest
moviez  Offline OP
Guest
M

Joined: Oct 2011
Posts: 1
Tasmania
Hei everyone,
I struggle with adding of a action at my model, I created my model in MED, animated it, and added it into my world in WED. Under behaviour -> Action, i cant find anything and a dont know how to add frown (engine a8)
p.s. yes i have read the tutorials, and yes im confortable with easy scripting
Thx for help Moviez

Hallo zusammen,
ich komme einfach nicht weiter, ich habe im modell editor ein model erstellt und animiert. Ich habe 8 frames. Ich habe dann mein model in meiner welt im MED geladen, und schaffe es jetz einfach nicht unter behaviour -> Action, eine action hinzuzufügen.(gamestudio a8)
p.s. ja ich habe die tutorials gelesen, und ja ich bin ok mit einfachem scripten
danke für hilfe
Moviez

Re: stucking with adding of an action [Re: moviez] #385507
10/19/11 09:02
10/19/11 09:02
Joined: Sep 2009
Posts: 1,032
Budapest
Aku_Aku Offline
Serious User
Aku_Aku  Offline
Serious User

Joined: Sep 2009
Posts: 1,032
Budapest
In the manual: Event
If you have a function that you want to assign to a model use this example:
Code:
my.event = bounce_event;


as it stated in the manual.

Re: stucking with adding of an action [Re: Aku_Aku] #385512
10/19/11 12:31
10/19/11 12:31
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
That's not what he was asking for, Aku Aku.

Überprüfe erst einmal, ob unter File->Map Properties->Script ein Script ausgewählt ist. Wenn nicht, wähle eines aus oder erstelle ein neues. Erst jetzt erscheinen in der Action-Auswahl mögliche Entity-Funktionen. Beachte, dass du dein Modell erst in WED auswählen musst, bevor du sein Verhalten ändern kannst (ist natürlich klar, aber du schilderst nicht genau, wo dein Problem ist).


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: stucking with adding of an action [Re: Superku] #385517
10/19/11 13:45
10/19/11 13:45
Joined: Sep 2009
Posts: 1,032
Budapest
Aku_Aku Offline
Serious User
Aku_Aku  Offline
Serious User

Joined: Sep 2009
Posts: 1,032
Budapest
I am sorry if i misunderstood something.
I think, based on the topic opener sentence:
Quote:
p.s. yes i have read the tutorials, and yes im confortable with easy scripting

he/she would use a little script to move his/her models.

Re: stucking with adding of an action [Re: Aku_Aku] #385530
10/19/11 17:27
10/19/11 17:27
Joined: Jun 2011
Posts: 133
N
nomis23uk Offline
Member
nomis23uk  Offline
Member
N

Joined: Jun 2011
Posts: 133
not 100% sure on what ur asking for...do you need to know how to apply an action to a enitty / model?

If you want to animate a model your need to use c-lite or c++ in your script file...for example....


Code:
action player_walk()
{
   blabla bla bla.....
}



in the level editor you then need to assign the action player_walk in my example to the charactor.... check the manual on where to find the actions dial box.

if you dont see any actions after creating them in your script file I would suggest checking to make sure the project is pointing to the correct file....

hope this helps.


if you want some basic code here is some:

Code:
function basic_move()
{
  var walk_percentage = 0;
  
  while (1) 
  {
    my.pan += (key_a - key_d)*5*time_step;   // rotate the entity using [A],[D]
    var distance = (key_w - key_s)*5*time_step;
    c_move(me, vector(distance,0,0), NULL, GLIDE); // move it using [W],[S]
    walk_percentage += distance;
    ent_animate(me,"walk",walk_percentage,ANM_CYCLE); // animate the entity
    wait (1);
  }
}



very basic nothing fancy just something I took out of my old messing around projects..... this is a function just creation an action and put the function inside it.

bare in mind though depending what youve called your keyframes it may or may not work.

Last edited by nomis23uk; 10/19/11 17:30.

A8 Pro
Windows 7 64bit
QuadCore i7, 6 gb ram, ATI 5970
Re: stucking with adding of an action [Re: nomis23uk] #385534
10/19/11 20:10
10/19/11 20:10
Joined: Oct 2011
Posts: 5
Fortaleza - Ceará Brazil
E
Estevoo Offline
Newbie
Estevoo  Offline
Newbie
E

Joined: Oct 2011
Posts: 5
Fortaleza - Ceará Brazil
well, my porblem is kind smaller! I need to know how to set animations for my character.
thanks

Re: stucking with adding of an action [Re: Estevoo] #385675
10/21/11 19:56
10/21/11 19:56
Joined: Jun 2011
Posts: 133
N
nomis23uk Offline
Member
nomis23uk  Offline
Member
N

Joined: Jun 2011
Posts: 133
workshop 21 should cover what you need to know.

http://tutorial.3dgamestudio.net/

if you get stuck or theres something you dont understand just ask.


A8 Pro
Windows 7 64bit
QuadCore i7, 6 gb ram, ATI 5970

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