Gamestudio Links
Zorro Links
Newest Posts
Lapsa's very own thread
by Lapsa. 07/18/26 13:40
Z9 getting Error 058
by madpower2000. 07/17/26 19:03
Purchase A8 full licence version
by ukgamer. 07/17/26 05:52
New Lic: When does the Support clock start?
by Student_64151. 07/17/26 01:38
New Zorro version 3.11
by madpower2000. 07/16/26 13:49
What are you working on?
by NeoDumont. 07/15/26 16:38
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 2,555 guests, and 269 spiders.
Key: Admin, Global Mod, Mod
Newest Members
riggi89, shuhari, KD1990, Ephraim, Student_64151
19223 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How to change an entitys action #226686
09/10/08 19:24
09/10/08 19:24
Joined: Aug 2008
Posts: 14
H
Humbug Offline OP
Newbie
Humbug  Offline OP
Newbie
H

Joined: Aug 2008
Posts: 14
I wnat to change an entitys behavior. Is it possible with the dot-methode, or is there another way? Can't think of one...
Thanks for help! smile
--------------------------------
Ich möchte das Verhalten einer Entität ändern. Ist das mit der Punkt-Methode möglich, oder gibt es einen anderen Weg? Ich kann mir keinen vorstellen...
Danke für die kommende Hilfe! smile

Re: How to change an entitys action [Re: Humbug] #226721
09/10/08 21:48
09/10/08 21:48
Joined: Jul 2008
Posts: 894
T
TechMuc Offline
User
TechMuc  Offline
User
T

Joined: Jul 2008
Posts: 894
Punkt Methode?!?

Beispiel für das ändern des verhaltes einer Entität

action changer
{
while(me)
{
if(my.skill1 == 0) //falls behaviour 1
{
be_a_cow();
}
else
{
be_a_pig();
}
wait(1);
}
}

function be_a_pig() { snd_play(oink,100,0); }
function be_a_cow() { snd_play(muh,100,0); }


natürlich ein blödes beispiel..

Re: How to change an entitys action [Re: TechMuc] #226776
09/11/08 07:51
09/11/08 07:51
Joined: Mar 2006
Posts: 1,993
Karlsruhe
PadMalcom Offline
Serious User
PadMalcom  Offline
Serious User

Joined: Mar 2006
Posts: 1,993
Karlsruhe
Ich finds cool laugh

Re: How to change an entitys action [Re: PadMalcom] #226801
09/11/08 10:20
09/11/08 10:20
Joined: Aug 2008
Posts: 14
H
Humbug Offline OP
Newbie
Humbug  Offline OP
Newbie
H

Joined: Aug 2008
Posts: 14
Achso! Die Aktionen werden also über .skill kontrolliert. Danke, ich werde es gleich austesten!
Um auf deine Frage zurückzukommen: Die Punktmethode ist schlicht das Setzen eines Punktes hinter eine Entität, oder was auch immer und so auf seine Flags zurückzugreifen. Wie auch mit "my.skill1".
PS:
Ich find das Beispiel auch toll! smile


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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