Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by Zheka. 06/20/24 14:26
Lapsa's very own thread
by rki. 06/19/24 11:27
A simple game ...
by VoroneTZ. 06/18/24 10:50
Face player all the time ...
by bbn1982. 06/18/24 10:25
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, TipmyPip), 844 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mino, squik, AemStones, LucasJoshua, Baklazhan
19061 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Steuerung ändern #9425
06/21/02 07:57
06/21/02 07:57

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



quote:

key_force.x, key_force.y
Die 'geglättete' Kraft, die durch das Drücken der Cursortasten erzeugt wird, Wertebereich -1
... +1. Beim gleichzeitigen Betätigen der [Umschalt] Taste wird die Kraft mit shift_sense
multipliziert.

Vielleicht meint er das? [Wink]

Re: Steuerung ändern #9426
06/21/02 07:58
06/21/02 07:58

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



Was soll ich jetzt machen, einfach die Zeile mit key_force.x löschen ??? [Roll Eyes]

Re: Steuerung ändern #9427
06/20/02 20:11
06/20/02 20:11

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



Nee, daran liegts nicht, also hier noch ma die function:

code:
 function _player_intentions()
{
// Set the angular forces according to the player intentions
aforce.PAN = -astrength.PAN*(KEY_FORCE.X+JOY_FORCE.X);
aforce.TILT = astrength.TILT*(KEY_PGUP-KEY_PGDN);
if(MOUSE_MODE == 0)
{ // Mouse switched off?
aforce.PAN += -astrength.PAN*MOUSE_FORCE.X*mouseview*(1+KEY_SHIFT);
aforce.TILT += astrength.TILT*MOUSE_FORCE.Y*mouseview*(1+KEY_SHIFT);
}
aforce.ROLL = 0;
// Set ROLL force if ALT was pressed
if(KEY_ALT != 0)
{
aforce.ROLL = aforce.PAN;
aforce.PAN = 0;
}
// Double the forces in case the player pressed SHIFT
/*-- if(KEY_SHIFT != 0)
{
aforce.PAN += aforce.PAN;
aforce.TILT += aforce.TILT;
aforce.ROLL += aforce.ROLL;
}--*/
// Limit the forces in case the player
// pressed buttons, mouse and joystick simultaneously
limit.PAN = 2*astrength.PAN;
limit.TILT = 2*astrength.TILT;
limit.ROLL = 2*astrength.ROLL;

if(aforce.PAN > limit.PAN) { aforce.PAN = limit.PAN; }
if(aforce.PAN < -limit.PAN) { aforce.PAN = -limit.PAN; }
if(aforce.TILT > limit.TILT) { aforce.TILT = limit.TILT; }
if(aforce.TILT < -limit.TILT) { aforce.TILT = -limit.TILT; }
if(aforce.ROLL > limit.ROLL) { aforce.ROLL = limit.ROLL; }
if(aforce.ROLL < -limit.ROLL) { aforce.ROLL = -limit.ROLL; }
// Set the cartesian forces according to the player intentions
// force.X = strength.X*(KEY_FORCE.Y+JOY_FORCE.Y); // forward/back
force.Y = strength.Y*(key_cul -key_cur ); // side to side
force.Z = strength.Z*(KEY_HOME-KEY_END); // up and down
if(MOUSE_MODE == 0)
{ // Mouse switched off?
force.X += strength.X*MOUSE_RIGHT*mouseview;
}

// Double the forces in case the player pressed SHIFT
/*-- if(KEY_SHIFT != 0)
{
force.X += force.X;
force.Y += force.Y;
force.Z += force.Z;
}--*/

// Limit the forces in case the player tried to cheat by
// operating buttons, mouse and joystick simultaneously
limit.X = 2*strength.X;
limit.Y = 2*strength.Y;
limit.Z = 2*strength.Z;

if(force.X > limit.X) { force.X = limit.X; }
if(force.X < -limit.X) { force.X = -limit.X; }
if(force.Y > limit.Y) { force.Y = limit.Y; }
if(force.Y < -limit.Y) { force.Y = -limit.Y; }
if(force.Z > limit.Z) { force.Z = limit.Z; }
if(force.Z < -limit.Z) { force.Z = -limit.Z; }
}

Das würde alles so stimmen, aber ich kann immer noch zur Seite gehen, wenn ich , oder . drücke, obwohl das garned mehr da so steht [Eek!] [Eek!]

Im Handbuch steht, das die function eine alte function is und dass die garned mehr genommen wird. Aber welche is die function, die jetzt dafür genommen wird?????

Ich glaub, man kann das irgendwie einstellen, das die function genommen wird.

Re: Steuerung ändern #9428
06/20/02 20:12
06/20/02 20:12

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



Also die funktion steht bei mir in den templates irgendwo .

Re: Steuerung ändern #9429
06/20/02 20:50
06/20/02 20:50

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



Um die letzte Zeile gehts:

function _player_intentions(){// Set the angular forces according to the player intentions
aforce.PAN = -astrength.PAN*(KEY_FORCE.X+JOY_FORCE.X);

Hier sollte man das KEY_FORCE.X rausnehmen. Das ist alles.

aforce.PAN = -astrength.PAN*JOY_FORCE.X;

Re: Steuerung ändern #9430
06/21/02 02:44
06/21/02 02:44

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



Is immer noch so wie vorher, die function wird irgendwie garned verwended. Ich kann ja auch noch mit , und . seitwährts gehen, obwohl das garned mehr so im Script steht [Eek!]
Da kommen die Tasten ja garned mehr vor....

Re: Steuerung ändern #9431
06/21/02 02:49
06/21/02 02:49

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



Warum nennst du die funktion nicht einfach anders ???

Re: Steuerung ändern #9432
06/21/02 03:07
06/21/02 03:07

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



Und was soll das bringen ??

Re: Steuerung ändern #9433
06/21/02 08:08
06/21/02 08:08

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



dann ist Deine geänderte Datei nicht im Projektverzeichnis, dass Du angelegt hast .... bzw. nicht im template-Verzeichnis ...

Schau mal in Deine Start-WDL .....

Übrigens: Die letzte Änderung funktioniert bei mir mit den templates ....

Ich sag ja immer wieder .... besser selber programmieren als die templates zu nehmen .... wenn man die nicht verstanden hat, dann ist Schicht ..... Ende .... Aus.....

[Cool] [Cool] [Cool] [Cool] [Cool]

Re: Steuerung ändern #9434
06/22/02 07:33
06/22/02 07:33

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



Danke für alles, jetzt geht´s doch endlich [Cool]

Page 2 of 2 1 2

Moderated by  HeelX, Spirit 

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