so many questions so much wated time

Posted By: harleyb12

so many questions so much wated time - 06/13/07 22:28

ill get right to the questions
1.how do i atach the camra to the player model
2.how do i take a screenshot
3.how do i prevent light coming through a model where its not suppposed to
4.when i cg subtract and it splits a model into pieces how do i prevent those black line things on the model (sry if you dont understant)
5.how would i make a headlight thing that miners wear
ive been working on figuring out a simple game to make, i have finally found one, so now i am startting to get into the actual game insteadof just making the level. thx for your help
Posted By: rvL_eXile

Re: so many questions so much wated time - 06/14/07 03:20

Hi,

1.
Code:

Function camera_pos()

{
camera.genius = player;
camera.x = player.x;
camera.y = player.y;
camera.z = player.z;
}



2. Press F6

3.

Add this lines to the Player Action

Code:

my.light=on;
my.lightrange=300;
my.red=255;
my.green=0;
my.blue=0; //Now the Player Traces a Red Light



Hope this helps a lot

cYa Seabstian
Posted By: harleyb12

Re: so many questions so much wated time - 06/14/07 05:38

where do i put the script, lol im not getting this, ive had this for awhile im just not getting things, but i am improving quite a bit.
Posted By: rvL_eXile

Re: so many questions so much wated time - 06/14/07 14:18

Put the
Code:

my.light=on;
my.lightrange=300;
my.red=255;
my.green=0;
my.blue=0; //Now the Player Traces a Red Light



In the first of ure Player Script.

Put this "Camera.pos();" in a while(1) Loop int the Player Script.

Put the

Code:

Function camera_pos()

{
camera.genius = player;
camera.x = player.x;
camera.y = player.y;
camera.z = player.z;
}



under ure Player Action...

cYa Sebastian
Posted By: harleyb12

Re: so many questions so much wated time - 06/14/07 16:24

how do i get to the player script?
Posted By: rvL_eXile

Re: so many questions so much wated time - 06/14/07 20:13

Maybe wirte it to ure own? or try this (You mst Modify this)

Code:


Var Spieler_vorne=17;
Var Spieler_hinten=31;
Var Spieler_links_Drehung=30;
Var Spieler_rechts_Drehung=32;

Var Spieler_Bewegung;

Entity* Player;

Action player_move
{
player=my;
while(1)

{
Spieler_Bewegung.X = (key_pressed(Spieler_vorne)-key_pressed(Spieler_hinten))*10*time;
Player.pan-=10*(mouse_force.x+(key_pressed(Spieler_links_Drehung)-key_pressed(Spieler_rechts_Drehung)))*time;

Camera_Pos();

c_move(my,Spieler_Bewegung,vector(0,0,0), glide);
wait(1);
}
}

Function Camera_Pos()
{
camera.genius = player;
camera.x = player.x;
camera.y = player.y;
camera.z = player.z+40;
camera.pan = player.pan;
}



Now u can Attach the Action to one Model in the WED
Use the W/S/A/D Keys to move the Player...

cYa Sebastian
Posted By: harleyb12

Re: so many questions so much wated time - 06/21/07 18:34

ok ive finally figured out whats going on (i should read the tutorial more carefully) now i have 1 question. what type of script should i use, the a6 template has no actions for some reason, i dont have a5 for another reason and shooter project doesnt seem to have a player_walk_fight action
Posted By: Bot190

Re: so many questions so much wated time - 06/21/07 22:44

ok, that tut. is out of date... for that part of the tutorial you should skip it. use this Tutorial
Posted By: harleyb12

Re: so many questions so much wated time - 07/05/07 02:58

yey i figured it out!!!! ok, now i need to know how to make those little bushes like from prehistoric time where there like leaves coming out of the ground. there sprites (i think) but the sprite bends and curves
© 2024 lite-C Forums