Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (7th_zorro), 1,390 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 3
Page 1 of 2 1 2
Newton skripting #39162
01/12/05 04:12
01/12/05 04:12
Joined: Aug 2004
Posts: 593
Germany
Efrint Offline OP
Developer
Efrint  Offline OP
Developer

Joined: Aug 2004
Posts: 593
Germany
Hi Leute,

ich hab das aum skript für bouncing ball etwas abgewandelt. Wie schaffe ich es jetzt die newton physik engiene zu verwenden ohne die templates zu nutzen? Bei den templates funktioniert alles wunderbar, d.h. wenn ich rollenderweise gegen ein fass laufe wird es weggeschoben, hüpfe ich mit dem aum-skript gegen ein fass passiert gar nichts! Das fass hat in beiden fällen das newton
skript "NewtonWoodEntity"(oder so ähnlich).

Mein skript sieht so aus:
________________________________________________________________________________
action bouncing_ball
{
ball = my;
my.enable_block = on;
my.enable_entity = on;
my.event = reverse_speed;


while (1)
{

if (key_cuu == on)
{
ball_speed.x = 3 * time;
my.tilt -= 8 * time;

}
if (key_cud == on)
{
ball_speed.x = -3 * time;
my.tilt += 8 * time;
}
if ((key_cuu == off) && (key_cud == off))
{
ball_speed.x = 0;
}
if (key_cul == on)
{
ball_speed.y = 3 * time;
my.roll -= 8 * time;
}
if (key_cur == on)
{
ball_speed.y = -3 * time;
my.roll += 8 * time;
}
if ((key_cuu == off) && (key_cud == off))
{
ball_speed.x = 0;
}
if ((key_cul == off) && (key_cur == off))
{
ball_speed.y = 0;
}
vec_set (temp, my.x);
temp.z -= 1000;
trace_mode = ignore_me + ignore_passable + use_box; // use a thick trace ray (don't allow the ball to get stuck)
trace_dist = trace(my.x, temp);
if (trace_dist > max_height) // the ball has reached its maximum height?
{
ball_speed.z = -abs(ball_speed.z); // then give the ball a negative speed
}
ent_move (nullvector, ball_speed);
wait(1);
}
}

function reverse_speed()
{
ball_speed.z *= -1;
}
________________________________________________________________________________

Ich hoffe, mir kann jemand helfen!

Efrint

Re: Newton skripting [Re: Efrint] #39163
01/12/05 21:47
01/12/05 21:47
Joined: Aug 2004
Posts: 593
Germany
Efrint Offline OP
Developer
Efrint  Offline OP
Developer

Joined: Aug 2004
Posts: 593
Germany
Kann mir keiner helfen?

Re: Newton skripting [Re: Efrint] #39164
01/12/05 23:36
01/12/05 23:36
Joined: Jun 2004
Posts: 410
Bayern
ShooterMaker Offline
Senior Member
ShooterMaker  Offline
Senior Member

Joined: Jun 2004
Posts: 410
Bayern
also wenn ich dich nun richtig verstehe meinst du jemand soll dir dieses skript so umendern das es mit der newton-physikengiene leuft -oder?
wenn ja dann stell es doch ins newton forum da kann man dir dann sicher helfen

mfg:

ShooterMaker


ICQ: 336-958-756 <a href="www.shootermaker.de" target="_blank"> http://www.shootermaker.de </a>
Re: Newton skripting [Re: ShooterMaker] #39165
01/13/05 03:12
01/13/05 03:12
Joined: Aug 2004
Posts: 593
Germany
Efrint Offline OP
Developer
Efrint  Offline OP
Developer

Joined: Aug 2004
Posts: 593
Germany
He, das ist gar keine so blöde Idee...werd ich machen...
aber kann mir vielleicht sonst noch jemand helfen, in diesem forum?
Ich hab nämlich gar keine peil, wieso nur das prefab skript geht. Wie funktioniert das? Ist das mit einem pointer auf die entity XYZ geregelt, oder wie?
Danke schonmal für die Antwort!

Efrint


Eine Antwort wäre mir 24 Sterne wert!(soviele gibts aber nich)

Last edited by Efrint; 01/13/05 03:14.
Re: Newton skripting [Re: Efrint] #39166
01/13/05 03:18
01/13/05 03:18
Joined: Jun 2004
Posts: 410
Bayern
ShooterMaker Offline
Senior Member
ShooterMaker  Offline
Senior Member

Joined: Jun 2004
Posts: 410
Bayern
öhhh also wenn es dir direkt um das skript geht kann ich dir leider nicht helfen, da ich in newton auch noch nicht ganz durchblicke, aber wenn es dir um so einen ball geht, es giebt so ein fertiges ball skript in der newton demo

mfg:

ShooterMaker


ICQ: 336-958-756 <a href="www.shootermaker.de" target="_blank"> http://www.shootermaker.de </a>
Re: Newton skripting [Re: ShooterMaker] #39167
01/13/05 03:34
01/13/05 03:34
Joined: Mar 2003
Posts: 5,377
USofA
fastlane69 Offline
Senior Expert
fastlane69  Offline
Senior Expert

Joined: Mar 2003
Posts: 5,377
USofA
Take Shooter's advice: the answers to newton related problems are to be found on the Newton forum, not the 3DGS Physics Forum.

These forums are strictly for postings related to the 3DGS Physics Engine and not any other physics engine.

Good Luck with your project! Hope the Newton Forums help you out...if not you can always use the 3DGS Physics Engine and come back here for help!

Re: Newton skripting [Re: fastlane69] #39168
01/13/05 03:47
01/13/05 03:47
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
many newton questions (like this one) are more about having no clue about 3dgs scripting than anything else and don't really belong to the newton forum either. but i agree that newton topics shouldn't be posted in the 3dgs physics forum but in the beginner's, scripting or general tools forum.

Re: Newton skripting [Re: ventilator] #39169
01/15/05 06:28
01/15/05 06:28
Joined: Sep 2004
Posts: 106
Tn
StOrM Offline
Member
StOrM  Offline
Member

Joined: Sep 2004
Posts: 106
Tn
Theres a question I have had for a little while now with no answer, where are the official newton forums for the version which exists for 3d game studio ? I have the link to the Dark Basic Wrapper for Newton, and the main newton website, the C++ library version, so where is the support site for the 3d game studio version of newton ? If someone could help me out with a link for this I would really really appreciate it.

Thanks,

Ken


PKE Pain Is Reality! http://www.pkradio.net/
Re: Newton skripting [Re: StOrM] #39170
01/15/05 06:49
01/15/05 06:49
Joined: Sep 2004
Posts: 1,214
Austin, Texas
Josh_Arldt Offline
Senior Developer
Josh_Arldt  Offline
Senior Developer

Joined: Sep 2004
Posts: 1,214
Austin, Texas
This is the Newton PE website. You can get help with the gamestudio version on their forums.
www.physicsengine.com

Re: Newton skripting [Re: Josh_Arldt] #39171
01/22/05 11:00
01/22/05 11:00
Joined: Jan 2002
Posts: 1,276
trapped in a paper bag
Drew Offline
Serious User
Drew  Offline
Serious User

Joined: Jan 2002
Posts: 1,276
trapped in a paper bag
I doubt you will find any new help in the newton forums... the A6 version has been discontinued for now (ventilator, please tell me Im wrong), so where else are people going to exchange answers to questions, concerning A6?
As long as the topic says "newton" in it, whats the harm?!


Last edited by Drew; 01/22/05 12:21.
Page 1 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