0 registered members (),
17,340
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
stucking with adding of an action
#385505
10/19/11 08:33
10/19/11 08:33
|
Joined: Oct 2011
Posts: 1 Tasmania
moviez
OP
Guest
|
OP
Guest
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  (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
Serious User
|
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: 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
Senior Expert
|
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
Serious User
|
Serious User
Joined: Sep 2009
Posts: 1,032
Budapest
|
I am sorry if i misunderstood something. I think, based on the topic opener sentence: 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
nomis23uk
Member
|
Member
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....
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:
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: Estevoo]
#385675
10/21/11 19:56
10/21/11 19:56
|
Joined: Jun 2011
Posts: 133
nomis23uk
Member
|
Member
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
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|