Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
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
4 registered members (degenerate_762, AbrahamR, AndrewAMD, ozgur), 667 guests, and 8 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
Why doesnt glide work? #252404
02/18/09 05:11
02/18/09 05:11
Joined: Nov 2006
Posts: 193
England
RyuShinji Offline OP
Member
RyuShinji  Offline OP
Member

Joined: Nov 2006
Posts: 193
England
Hi why does my player entity go through the floor even when glide is set on? I'm using c_move & the floor is not passible...

What am I missing?

Re: Why doesnt glide work? [Re: RyuShinji] #252603
02/19/09 07:10
02/19/09 07:10
Joined: Sep 2008
Posts: 76
Max_Prower Offline
Junior Member
Max_Prower  Offline
Junior Member

Joined: Sep 2008
Posts: 76
I probably won't have a clue as to how to solve this; but I'd like to try. :P

May I see the code? smile

And also, I'm having a similar problem. It goes on the floor just fine but it won't go up slopes. I'm sure it's something to do with move_min_z but I am not sure as to how to solve it.

Last edited by Max_Prower; 02/19/09 07:11. Reason: Explaining my problem.
Re: Why doesnt glide work? [Re: Max_Prower] #252605
02/19/09 07:23
02/19/09 07:23
Joined: Jul 2008
Posts: 553
Singapore
delinkx Offline
User
delinkx  Offline
User

Joined: Jul 2008
Posts: 553
Singapore
show ur piece of code.


A7 commercial Team / VC++ 2008 Pro
homepage | twitter | facebook
Re: Why doesnt glide work? [Re: delinkx] #252607
02/19/09 07:27
02/19/09 07:27
Joined: Sep 2008
Posts: 76
Max_Prower Offline
Junior Member
Max_Prower  Offline
Junior Member

Joined: Sep 2008
Posts: 76
Here is all of my code, so far. I write is a piece at a time for this exact reason: It's easier to iron out the bugs:
Code:
#include <acknex.h>
#include <default.c>
#include <player.c>
ENTITY* fox = 
{
	type = "foxbody1.mdl";
}


function player_move()
{

	while(1)
	{
		c_move(me, vector(0,15*key_w *time_step,0),nullvector, GLIDE); //Move forward
			c_move(me, vector(0,-15*key_s *time_step,0),nullvector, GLIDE); // Move backward
				c_move(me, vector(-15*key_a *time_step,0,0),nullvector, GLIDE);// Strafe left
				c_move(me, vector(15*key_d *time_step,0,0),nullvector, GLIDE);// Strafe right
		wait(1);
	}
}

function main()
{
level_load ("floor_1.WMB");
camera.z = fox.z + 200;
camera.y = -1400;
camera.x = fox.x;
camera.pan =90;
fox = ent_create("foxbody1.mdl", vector(0,-1272,0), player_move);
}


Re: Why doesnt glide work? [Re: Max_Prower] #252608
02/19/09 07:35
02/19/09 07:35
Joined: Jul 2008
Posts: 553
Singapore
delinkx Offline
User
delinkx  Offline
User

Joined: Jul 2008
Posts: 553
Singapore
try IGNORE_PASSABLE | GLIDE


A7 commercial Team / VC++ 2008 Pro
homepage | twitter | facebook
Re: Why doesnt glide work? [Re: delinkx] #252609
02/19/09 07:38
02/19/09 07:38
Joined: Sep 2008
Posts: 76
Max_Prower Offline
Junior Member
Max_Prower  Offline
Junior Member

Joined: Sep 2008
Posts: 76
No luck. T-T I'm quite certain that it involves move_min_z. But being a newbie I can't seem to figure it out. frown


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