Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 10:32
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
6 registered members (fairtrader, AndrewAMD, ozgur, TipmyPip, Quad, alibaba), 582 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Code FRAGE #79675
06/27/06 15:06
06/27/06 15:06
Joined: Apr 2005
Posts: 2,332
Germany, BaWü
aztec Offline OP

Expert
aztec  Offline OP

Expert

Joined: Apr 2005
Posts: 2,332
Germany, BaWü
Ich habe hier einen code (sorry für die länge)
Code:
var video_mode = 7;
var video_depth = 16;
string level = <escape.wmb>;
bmap zeiger = <pointer.pcx>;
string lose = "Da war ein Stück lose";
string lyla = "Hey weist du was wir jetzt machen koennen?";
string antwort1 = "Schau dich um vielleicht findest du ja eine möglichkeit\n um uns hier rauszuhohlen";
string ein_messer = "Ich habe ein Messer gefunden";
string messer_antwort "Gut aber das reicht noch nicht\n Du brauchst noch was. \n Hier kannst du das gebrauchen?";
string alter_1 "Hmm..... ein alter Waschlappen.\n mal sehen für was ich den gebrauchen kann";
string oel "Ich habe mit dem messer reingestochen\nist das Oel?\nDer Lappen ist nun voll mit Oel";
string komplett = "Okay dann lass uns von hier her verschwinden";
string moeglichkeit = "Ich glaube ich habe eine möglichkeit gefunden,\num uns hier rauszuhohlen";
string stock = "hm... einen Stock kann man immer gebrauchen";
sound broeckel = <broeckeln.wav>;
font simple = "arial", 0, 30;
bmap pfeil1 = <links.pcx>;//linker Pfeil
bmap pfeil2 = <rechts.pcx>;//rechter Pfeil
bmap leiste = <leiste.pcx>;
bmap messer = <shot.pcx>;
bmap feuerzeug = <feuerzeug.pcx>;
bmap waschlappen = <waschlappen.pcx>;
bmap waschlappen2 =<waschlappen2.pcx>;
bmap pfeil3 = <unten.pcx>;
bmap stocki = <stock.pcx>;
var die_info = 0;
var stange = 0;
var messer_var = 0;
var lappen_var = 0;
var lappen_var2 = 0;
var stocken = 0;
entity* messer_cool;
entity* gefangstang; // Stagnen
entity* komplet;

panel stecken
{
bmap = stocki;
pos_x =450;
pos_y =570;
layer = 25;
}

panel lappen
{
bmap = waschlappen;
pos_x =450;
pos_y =530;
layer = 24;
}

panel lappen2
{
bmap = waschlappen2;
pos_x =450;
pos_y =530;
layer = 24;
}

panel fire_light // feuerzeug
{
bmap = feuerzeug;
pos_x =250;
pos_y =530;
layer = 24;
}

panel anzeige_brocken //2te anzeige des linken buttons
{
bmap = leiste;
pos_x = 150;
pos_y = 525;
flags = transparent;
button = 0, 0, pfeil2, pfeil2, pfeil2, position_anfang, null, null;
layer = 23;
}

panel anzeige3 //2te anzeige des linken buttons
{
bmap = leiste;
pos_x = 150;
pos_y = 525;
flags = transparent;
button = 380, 0, pfeil1, pfeil1, pfeil1, position_anfang, null, null;
layer = 23;
}

panel anzeige2 //2te anzeige des linken buttons
{
bmap = leiste;
pos_x = 150;
pos_y = 525;
flags = transparent;
button = 380, 0, pfeil2, pfeil2, pfeil2, position_anfang, null, null;
layer = 23;
}

panel anzeige1 //anzeige des linken buttons
{
bmap = leiste;
pos_x = 150;
pos_y = 525;
flags = visible,transparent;
button = 0,0, pfeil1, pfeil1, pfeil1, position, null ,null;
button = 380, 0, pfeil2, pfeil2, pfeil2, waschbecken, null, null;
button = 200, 0, pfeil3, pfeil3, pfeil3, pos_staebe, null, null;
layer = 23;
}

panel the_knife
{
pos_x = 300;
pos_y = 530;
bmap = messer;
layer = 24;
}

function pos_staebe
{
camera.x =-27;
camera.y =-117;
camera.z =159;
camera.pan =33;
camera.tilt =-30;
camera.roll =0;
anzeige1.visible = off;
anzeige3.visible = on;
stange = 1;
gefangstang.invisible = off;
}

function position
{
camera.x =7;
camera.y =-78;
camera.z =81;
camera.pan =261;
camera.tilt =6;
camera.roll =0;
anzeige1.visible = off;
anzeige2.visible = on;
}

function position_anfang
{
camera.x =100;
camera.y =-63;
camera.z =146;
camera.pan =180;
camera.tilt =0;
camera.roll =0;
anzeige2.visible = off;
anzeige1.visible = on;
anzeige3.visible = off;
gefangstang.invisible = on;
}

function waschbecken // koordinaten waschbecekn
{
camera.x =24;
camera.y =-75;
camera.z =77;
camera.pan =92;
camera.tilt =-10;
camera.roll =0;
anzeige1.visible = off;
anzeige3.visible = on;
}

text ein_stock
{
string = stock;
pos_x = 0;
pos_y = 0;
font = simple;
}

function einen_stock
{
mouse_mode = 0;
ein_stock.visible = on;
sleep(2);
ein_stock.visible = off;
ent_remove (me);
stecken.visible = on;
mouse_mode = 2;
stocken = 1;
}

text moegl
{
string = moeglichkeit;
pos_x = 0;
pos_y = 0;
font = simple;
}

text raus
{
string = komplett;
pos_x = 0;
pos_y = 0;
font = simple;
}

text alter
{
string = alter_1;
pos_x = 0;
pos_y = 0;
font = simple;
}

text getraenkt
{
string = oel;
pos_x = 0;
pos_y = 0;
font = simple;
}

text brocken
{
pos_x = 0;
pos_y = 0;
string = lose;
font = simple;
}

text man//der was tun wir jezt text
{
pos_x = 0;
pos_y = 0;
font = simple;
string = lyla;
}

text girl
{
pos_x = 0;
pos_y = 100;
font = simple;
string = antwort1;
}

text man2
{
pos_x = 0;
pos_y = 0;
font = simple;
string = ein_messer;
}

text girl2
{
pos_x = 0;
pos_y = 100;
font = simple;
string = messer_antwort;
}

bmap fire4_farbe1 = <fire4_red.tga>;
VAR lappefeuerAnzahlPartikel = 35.271; //number of particles used for this effect


Function lappefeuer_spec_fun()
{
my.alpha -= 5 *time;
IF(My.alpha < 0) { my.alpha = 0; my.lifespan = 0; }
}

Function lappefeuerspezial()
{
my.blue = 128 ;
my.green = 128 ;
my.red = 128 ;
my.bmap = fire4_farbe1; //the effect bitmap
my.vel_x = random( 3 ) - 1.500 ;
my.vel_y = random( 7.793 ) - 3.896 ;
my.vel_z = random( 3 );
my.size = 8.885 ;
my.alpha = 50 ;
my.gravity = 0 ;
my.streak = off;
my.flare = on;
my.bright = on;
my.beam = off;
my.move = on;
my.transparent = on;
my.function = lappefeuer_spec_fun;
}


Function lappefeuer()
{
while(1)
{
lappefeuerAnzahlPartikel = 35;
effect(lappefeuerspezial,max(1,lappefeuerAnzahlPartikel*time),my.x,nullvector);
wait(1);
}
}


function frau
{
if(die_info == 0)
{
mouse_mode = 0;
man.visible = on;
sleep(3);
girl.visible = on;
man.visible = off;
sleep(3);
girl.visible = off;
mouse_mode = 1;
}
if(die_info == 1)
{
mouse_mode = 0;
man2.visible = on;
sleep(3);
girl2.visible = on;
man2.visible = off;
sleep(3);
girl2.visible = off;
fire_light.visible = on;
mouse_mode = 1;
}
if(lappen_var2 == 1 && stocken == 1)
{
mouse_mode = 0;
moegl.visible = on;
sleep(2);
moegl.visible = off;
raus.visible = on;
sleep(2);
raus.visible = off;
camera.x =100;
camera.y =-63;
camera.z =146;
camera.pan =180;
camera.tilt =0;
camera.roll =0;
anzeige2.visible = off;
anzeige1.visible = on;
anzeige3.visible = off;
gefangstang.invisible = on;
komplet.invisible = off;
}
}


function main
{
level_load (level);
mouse_map = zeiger;
mouse_mode = 2;
while(1)
{
mouse_pos.x = pointer.x;
mouse_pos.y = pointer.y;
wait(1);
}
}

function kill_me
{
snd_play(broeckel, 100,0);
ent_remove(me);
brocken.visible = on;
camera.x =-18;
camera.y =-90;
camera.z =81;
camera.pan =224;
camera.tilt =-2;
camera.roll =0;
sleep(3);
brocken.visible = off;
}

function das_messer
{
ent_remove (me);
the_knife.visible = on;
die_info = 1;
messer_var = 1;
}

action messer2
{
messer_cool = me;
my.invisible = on;
}

function metal_stueck
{
camera.x =-18;
camera.y =-46;
camera.z =153;
camera.pan =135;
camera.tilt =8;
camera.roll =0;
anzeige1.visible = off;
anzeige3.visible = on;
if(messer_var == 1 && lappen_var == 1)
{
messer_cool.invisible = off;
the_knife.visible = off;
mouse_mode = 0;
getraenkt.visible = on;
sleep(2);
getraenkt.visible = off;
mouse_mode = 2;
lappen.visible = off;
lappen2.visible = on;
lappen_var2 = 1;

}
}

function lappen_event
{
lappen_var = 1;
ent_remove(me);
lappen.visible = on;
mouse_mode = 0;
alter.visible = on;
sleep(2);
alter.visible = off;
mouse_mode = 2;
}

action lappenstange
{
komplet = me;
my.invisible = on;
my.event = lappefeuer;
}

action lappen_staub
{
my.enable_click = on;
my.event = lappen_event;
}

action block
{
my.enable_click = on;
my.event = kill_me;
}

action rohr
{
my.enable_click = on;
my.event = metal_stueck;
}

action woman
{
my.enable_click = on;
my.invisible = off;
my.event = frau;
}

action messer1
{
my.enable_click = on;
my.event = das_messer;
}

action stangen
{
gefangstang = me;
my.invisible = on;
}

action collect_stock
{
my.enable_click = on;
my.event = einen_stock;
}


Und eine frage Ich würde gern den lappeffekt abspielen bei function Frau bei der 3ten if 3 aber erst dann


Visit:
schwenkschuster-design.de
Re: Code FRAGE [Re: aztec] #79676
06/27/06 15:37
06/27/06 15:37
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Äh ja ... ?

Soll der effekt von da an unendlich lang abspielen?
-wenn ja: die function "lappefeuer" im dritten if aufrufen

Oder soll der effekt einmal abgespielt werden?
-wenn ja: die effect zeile aus der function "lappefeuer" irgendwohin in die function frau (ins dritte if) kopieren

Also nicht in die if() zeile sondern in den anweisungsblock danach

Re: Code FRAGE [Re: Xarthor] #79677
06/27/06 15:52
06/27/06 15:52
Joined: Apr 2005
Posts: 2,332
Germany, BaWü
aztec Offline OP

Expert
aztec  Offline OP

Expert

Joined: Apr 2005
Posts: 2,332
Germany, BaWü
Ach ja ich vergaß zu erwähnen das der effekt auf dem Moddel stocklappen dann erscheinen soll sorry
Ich habe das aber mal versucht doch es hat nicht geklappt


Visit:
schwenkschuster-design.de
Re: Code FRAGE [Re: aztec] #79678
06/27/06 16:09
06/27/06 16:09
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Ich seh keine action "stocklappen" nur eine action "lappenstange".
Ist die gemeint?
Wenn ja dann änder das my.x in der effect anweisung in komplet.x
da komplet anscheint ein pointer ist der auf das model mit der action "lappenstange" verweist.

Desweiteren wäre es möglich den ersten post soweit zu beschneiden, das nur noch die effect function, die function die ihn aufruft (frau) und die action der entity auf der der effect erscheinen soll da steht?

Re: Code FRAGE [Re: Xarthor] #79679
06/27/06 16:27
06/27/06 16:27
Joined: Apr 2005
Posts: 2,332
Germany, BaWü
aztec Offline OP

Expert
aztec  Offline OP

Expert

Joined: Apr 2005
Posts: 2,332
Germany, BaWü
okay danke genau die action meinte ich wusste nur nicht mehr wie die heißt vielen Dank thunder wie immer


Visit:
schwenkschuster-design.de
Re: Code FRAGE [Re: aztec] #79680
06/27/06 18:25
06/27/06 18:25
Joined: Apr 2005
Posts: 2,332
Germany, BaWü
aztec Offline OP

Expert
aztec  Offline OP

Expert

Joined: Apr 2005
Posts: 2,332
Germany, BaWü
Toll es hat funktiniert aber gibt es je zt noch die möglichkeit den effekt zu verschieben denn es brennt an der falschen Ort zu weit unten kann ich das verbessern?


Visit:
schwenkschuster-design.de
Re: Code FRAGE [Re: aztec] #79681
06/27/06 18:52
06/27/06 18:52
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Ja entweder du verschiebst das model im MED so, dass der ursprung dort liegt wo der effekt erscheinen soll.

Oder du erstellst einen losen vertex dort wo er erschein soll, holst dir die position des vertex per vec_for_vertex und nimmst den vector dann als position für den effect.

Re: Code FRAGE [Re: Xarthor] #79682
06/27/06 20:00
06/27/06 20:00
Joined: Apr 2005
Posts: 2,332
Germany, BaWü
aztec Offline OP

Expert
aztec  Offline OP

Expert

Joined: Apr 2005
Posts: 2,332
Germany, BaWü
Puh da brauche ich jezt aber hilfe kannst du mir ein beispiel vielleicht anhand meines codes geben ich habs nachgeschlagen aber ich komm nicht drauf


Visit:
schwenkschuster-design.de
Re: Code FRAGE [Re: aztec] #79683
06/28/06 08:45
06/28/06 08:45
Joined: Apr 2005
Posts: 2,332
Germany, BaWü
aztec Offline OP

Expert
aztec  Offline OP

Expert

Joined: Apr 2005
Posts: 2,332
Germany, BaWü
Schau ich möchte das dass feuer viel weiter oben brennt wie kann ich das machen?



Visit:
schwenkschuster-design.de
Re: Code FRAGE [Re: aztec] #79684
06/28/06 09:06
06/28/06 09:06
Joined: Oct 2001
Posts: 1,163
Germany
XeXeS Offline
Serious User
XeXeS  Offline
Serious User

Joined: Oct 2001
Posts: 1,163
Germany
Lol das mit dem Vertex ist alles Umständlich. Machn nen Skill für dia Aktion mit nem Z Offset und stells so ein wie dus möchtest fertig.

Page 1 of 2 1 2

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