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
3 registered members (AndrewAMD, 7th_zorro, TedMar), 1,243 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
FPS Movement? #329545
06/21/10 00:39
06/21/10 00:39
Joined: Mar 2005
Posts: 134
J
jeffmorris Offline OP
Member
jeffmorris  Offline OP
Member
J

Joined: Mar 2005
Posts: 134
Is it possible to have FPS (first person shooter) movement using keys, mouse, and/or joystick? I created a 3D model of a large house with interior and I would like to "walk" through the house. The Lite-C tutorials didn't help me. I tried to use code from Workshop 13, 14, 15, 18, and 24. Is there a bug on using hollow boxes as skyboxes? Something was wrong with the display of the sky texture on the hollow box.

Re: FPS Movement? [Re: jeffmorris] #329547
06/21/10 02:22
06/21/10 02:22
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Yes it is possible, but what exactly you need? laugh


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: FPS Movement? [Re: 3run] #329566
06/21/10 09:40
06/21/10 09:40
Joined: Mar 2005
Posts: 134
J
jeffmorris Offline OP
Member
jeffmorris  Offline OP
Member
J

Joined: Mar 2005
Posts: 134
Image a person walking through a house and don't walk through the walls like a ghost.

Re: FPS Movement? [Re: jeffmorris] #329568
06/21/10 09:42
06/21/10 09:42
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
Don`t use the PASSABLE flag and move with c_move()

Re: FPS Movement? [Re: Widi] #329570
06/21/10 10:44
06/21/10 10:44
Joined: Mar 2005
Posts: 134
J
jeffmorris Offline OP
Member
jeffmorris  Offline OP
Member
J

Joined: Mar 2005
Posts: 134
Is it possible to use c_move() with the camera "pos_000"?

Re: FPS Movement? [Re: jeffmorris] #329579
06/21/10 12:18
06/21/10 12:18
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
Do you do already the workshop? The workshop 18 is for moving entities. In a FPS you have to move the player (with c_move) and then set the camera to the players pos.

Re: FPS Movement? [Re: Widi] #329662
06/21/10 19:43
06/21/10 19:43
Joined: Mar 2005
Posts: 134
J
jeffmorris Offline OP
Member
jeffmorris  Offline OP
Member
J

Joined: Mar 2005
Posts: 134
I want to use the code in Workshop 24 but I don't want to follow the warlord around. I want to use a camera instead of the warlord.

Re: FPS Movement? [Re: jeffmorris] #329664
06/21/10 19:44
06/21/10 19:44
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline
Expert
JibbSmart  Offline
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
Then attach a camera to the warlord.

Jibb

EDIT: Yes, but at least you showed him how to do it, Widi laugh

Last edited by JulzMighty; 06/21/10 19:57.

Formerly known as JulzMighty.
I made KarBOOM!
Re: FPS Movement? [Re: jeffmorris] #329666
06/21/10 19:49
06/21/10 19:49
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
replace following code:
Code:
function camera_follow(ENTITY* ent) 
{ 
   while(1) { 
     vec_set(camera.x,vector(-150,10,25)); 
     vec_rotate(camera.x,ent.pan);
     vec_add(camera.x,ent.x);
     vec_set(camera.pan,vector(ent.pan,-10,0)); 
     wait(1); 
   } 
}


with:
Code:
function camera_follow(ENTITY* ent) 
{ 
   while(1) { 
     vec_set(camera.x,ent.x); 
     vec_set(camera.pan,ent.pan);
     wait(1); 
   } 
}


That set the camera at the players pos.


EDIT: Julz, you was faster wink

Last edited by Widi; 06/21/10 19:50.
Re: FPS Movement? [Re: Widi] #329686
06/21/10 22:18
06/21/10 22:18
Joined: Mar 2005
Posts: 134
J
jeffmorris Offline OP
Member
jeffmorris  Offline OP
Member
J

Joined: Mar 2005
Posts: 134
In WED, I created a new level/world. I added the house and the SF_Woman to the level/world. In Map Properties, I clicked on "New Script" and chose "Shooter Project". I assigned "PIBiped01" action to the SF_Woman. I saved the level, compiled the level, and played the level. I went through the walls! The house was created as MDL file and when I clicked on the house in WED, I don't see any properties that are available for cubes. How can I stop going through the walls? I think that the "A7 WalkThru Project" is really "A6 WalkThru Project".

Page 1 of 2 1 2

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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