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 (AndrewAMD, alibaba, fairtrader, ozgur, TipmyPip, Quad), 604 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: SYBEX???? [Re: not_me] #121611
04/06/07 15:35
04/06/07 15:35
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline
Expert
Slin  Offline
Expert

Joined: May 2005
Posts: 2,713
Lübeck
Quote:

well..i dont get any errors...
when i try and run the level.




Then everything should work.
Just add for example:
SLX3_Bloom(2,2);
somewhere in your function main, to get a nice bloom effekt.

To your other question:
Which playerscript are you using?

Slin

Re: SYBEX???? [Re: Slin] #121612
04/06/07 15:57
04/06/07 15:57
Joined: Sep 2005
Posts: 508
Texas
not_me Offline OP
User
not_me  Offline OP
User

Joined: Sep 2005
Posts: 508
Texas
its a home made player script
//player action - for player
action player_move
{

player = me;
wait(1);
camera.genius = player;
shift_sense = 2;
while (me != NULL)
{

move_vec[0] = (key_force.y)*4 *time;

player.pan -= (key_force.x)*5 *time;

move_vec[0] = (key_w - key_s)*20 *time;
move_vec[1] = (key_q - key_e) *16 *time;
Move_vec.z = - trace(player.x,temp.x);
strafeleft_percent = (strafeleft_percent +5*time)%100;
ent_animate(me,"strafeleft",strafeleft_percent,ANM_CYCLE);
straferight_percent = (straferight_percent +5*time)%100;
ent_animate(me,"straferight",straferight_percent,ANM_CYCLE);
vec_set(temp,my.x);

temp.z -= 4000;
Trace(player.x,temp.x); // traces from the player x/y/z to the modified temp x/y/z
trace_mode = ignore_me+ignore_sprites+IGNORE_MODELS+USE_BOX;
move_vec.z = (-trace(my.x,temp))*3*time;
Distance_traced = trace(from_vec, to_vec);
player.pan -= (key_force.x)*5 *time;

player.pan += (key_a-key_d)*8 *time;
move_mode = IGNORE_YOU + IGNORE_PASSABLE + IGNORE_PUSH + ACTIVATE_TRIGGER + GLIDE;
ent_move(move_vec,NULLVECTOR);




If (move_vec[0] == 0 && move_vec[1] == 0)
{
idle_percent = (idle_percent +5*time)%100;
ent_animate(me,"idle",idle_percent,ANM_CYCLE);
}
else
{
if (key_shift)
{
run_percent = (run_percent + sign(move_vec[0])*5*time)%100;
ent_animate(player,"run",run_percent,ANM_CYCLE);
}
else
{

// our movement animations will go here
walk_percent = (walk_percent + sign(move_vec[0])*5*time)%100;
ent_animate(player,"walk",walk_percent,ANM_CYCLE);
}
}


-Initiate Games
-Level designer

http://www.sckratchmagazine.com
Re: SYBEX???? [Re: not_me] #121613
04/06/07 16:16
04/06/07 16:16
Joined: Sep 2005
Posts: 508
Texas
not_me Offline OP
User
not_me  Offline OP
User

Joined: Sep 2005
Posts: 508
Texas
oh and thought the scripts and stuff are working. i dont see a change in the level. should i close the level and reopen it in wed? or is there something wrong.


-Initiate Games
-Level designer

http://www.sckratchmagazine.com
Re: SYBEX???? [Re: not_me] #121614
04/06/07 16:21
04/06/07 16:21
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline
Expert
Slin  Offline
Expert

Joined: May 2005
Posts: 2,713
Lübeck
I overworked your script a bit because you´ve got everything two or three times.
I´m realy impressed that it should have worked...

Code:

//player action - for player
action player_move
{
player = me;
camera.genius = me;
shift_sense = 2;

while(me)
{
move_vec[0] = (key_w - key_s)*20 *time;
move_vec[1] = (key_q - key_e) *16 *time;

player.pan -= (key_force.x)*5 *time;
player.pan += (key_a-key_d)*8 *time;

strafeleft_percent = (strafeleft_percent +5*time)%100;
ent_animate(me,"strafeleft",strafeleft_percent,ANM_CYCLE);
straferight_percent = (straferight_percent +5*time)%100;
ent_animate(me,"straferight",straferight_percent,ANM_CYCLE);

vec_set(temp,my.x);
temp.z -= 4000;
trace_mode = ignore_me+USE_BOX+ignore_passents+ignore_passable;
my..z = -trace(my.x,temp);

if(move_vec[0] == 0 && move_vec[1] == 0)
{
idle_percent = (idle_percent +5*time)%100;
ent_animate(me,"idle",idle_percent,ANM_CYCLE);
}else
{
if (key_shift)
{
run_percent = (run_percent + sign(move_vec[0])*5*time)%100;
ent_animate(me,"run",run_percent,ANM_CYCLE);
}else
{
// our movement animations will go here
walk_percent = (walk_percent + sign(move_vec[0])*5*time)%100;
ent_animate(me,"walk",walk_percent,ANM_CYCLE);
}

move_mode = IGNORE_YOU + IGNORE_PASSABLE + IGNORE_PUSH + ACTIVATE_TRIGGER + GLIDE;
ent_move(move_vec,NULLVECTOR);

wait(1);
}
}



Re: SYBEX???? [Re: Slin] #121615
04/06/07 16:50
04/06/07 16:50
Joined: Sep 2005
Posts: 508
Texas
not_me Offline OP
User
not_me  Offline OP
User

Joined: Sep 2005
Posts: 508
Texas
O THANK YOU! THNK YOU! ID KISS YOU BUT IM NOT THAT WAY! AND UR ALITTLE FAR AWAY...but wait..an error.. it told me endless loop in player_move. doesnt tell me where this error occurs though.

Last edited by not_me; 04/06/07 16:54.

-Initiate Games
-Level designer

http://www.sckratchmagazine.com
Re: SYBEX???? [Re: not_me] #121616
04/06/07 19:42
04/06/07 19:42
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
It does that when there isn't a wait() statement inside a while() loop, but there is... so I don't see why you're getting that error.


xXxGuitar511
- Programmer
Re: SYBEX???? [Re: xXxGuitar511] #121617
04/07/07 02:05
04/07/07 02:05
Joined: Sep 2005
Posts: 508
Texas
not_me Offline OP
User
not_me  Offline OP
User

Joined: Sep 2005
Posts: 508
Texas
ok..that was wierd
i run my level and the camera stays at the origon of the level. and i press zero and it moves to my player. and hes still doing the crazy bouncing thing!!!


-Initiate Games
-Level designer

http://www.sckratchmagazine.com
Re: SYBEX???? [Re: not_me] #121618
04/07/07 08:57
04/07/07 08:57
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline
Expert
Slin  Offline
Expert

Joined: May 2005
Posts: 2,713
Lübeck
The camera position isn´t set in this script. But this can be easily done by adding:

vec_set(camera.x,my.x);
vec_set(camera.pan,my.pan);

Why are you using trace and ent_move and not c_trace and c_move?

Oh and the problem with bouncing is this line:
my..z = -trace(my.x,temp);

it has to be:
my.z -= trace(my.x,temp);

Slin

Re: SYBEX???? [Re: Slin] #121619
04/07/07 18:13
04/07/07 18:13
Joined: Sep 2005
Posts: 508
Texas
not_me Offline OP
User
not_me  Offline OP
User

Joined: Sep 2005
Posts: 508
Texas
ok..that fixed a few things. only thing left is my player walks through the walls of the terrain. he doesnt seem to know how to walk up wals..lol. hes never seen the matrix.


-Initiate Games
-Level designer

http://www.sckratchmagazine.com
Page 2 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