Gamestudio Links
Zorro Links
Newest Posts
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Trading Journey
by 7th_zorro. 04/27/24 04:42
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Akow, AndrewAMD, Quad), 733 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Jumpy movement #276923
07/07/09 06:34
07/07/09 06:34
Joined: Jul 2005
Posts: 1,002
Trier, Deutschland
Nowherebrain Offline OP
Serious User
Nowherebrain  Offline OP
Serious User

Joined: Jul 2005
Posts: 1,002
Trier, Deutschland
My player seems to be moving around a bit(slight popping in z)...I cannot figure it out...I assumed it was a shared variable changing values like temp, but I cannot find it...does anyone see anything wrong here...this is the whole code..I just typed it for testing purposes with my camera code.
Code:
var run_speed = 550;

action guss()
{

	var anim_cycle;
	var ground_dist;
	VECTOR ground_00;
	
	player = my;
	c_updatehull(my,11);
	wait(1);
	set(my,SHADOW);
	my.material = mat_alphatest;
	while(1)
	{
		
		player_exists = 1;//global
		c_trace(my.x,vector(my.x,my.y,(my.z - 500)),IGNORE_ME|IGNORE_PASSABLE|IGNORE_SPRITES|USE_BOX);
		vec_set(player.x,vector(player.x,player.y,(hit.z + 24)));
		if(key_w == 1)
		{
			c_move(my,vector(run_speed*time_step/16,0,0),nullvector,IGNORE_PASSABLE|IGNORE_SPRITES|GLIDE);
			ent_animate(my,"run",anim_cycle,ANM_CYCLE);
			anim_cycle += 10 * time_step;
			anim_cycle %= 100;
		}
		if(key_any == 0)
		{
			ent_animate(my,"stand",anim_cycle,ANM_CYCLE);
			anim_cycle += 8 * time_step;
			anim_cycle %= 100;
		}
		my.pan -= mouse_force.x + mouse_force.x;
		wait(1);
	}
}




Everybody Poops.
here are some tutorials I made.
http://www.acknexturk.com/blender/
Re: Jumpy movement [Re: Nowherebrain] #276924
07/07/09 06:35
07/07/09 06:35
Joined: Jul 2005
Posts: 1,002
Trier, Deutschland
Nowherebrain Offline OP
Serious User
Nowherebrain  Offline OP
Serious User

Joined: Jul 2005
Posts: 1,002
Trier, Deutschland
This is very simple, but I am having so much trouble.


Everybody Poops.
here are some tutorials I made.
http://www.acknexturk.com/blender/
Re: Jumpy movement [Re: Nowherebrain] #276971
07/07/09 09:51
07/07/09 09:51
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
It may be that your down-trace is intermittantly failing. Try this.
c_trace(vector(my.x,my.y,my.z+50),vector(my.x,my.y,(my.z - 500)),IGNORE_ME|IGNORE_PASSABLE|IGNORE_SPRITES|USE_BOX);



"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: Jumpy movement [Re: EvilSOB] #276983
07/07/09 10:08
07/07/09 10:08
Joined: Jul 2005
Posts: 1,002
Trier, Deutschland
Nowherebrain Offline OP
Serious User
Nowherebrain  Offline OP
Serious User

Joined: Jul 2005
Posts: 1,002
Trier, Deutschland

the center of the model is already set a bit higher..
thus the offset of 24 for hit.z.
I will try any way though...

"down-trace is intermittantly failing", is a better way of describing it.

on a side note how could I possibly do this 2 times per frame?


Everybody Poops.
here are some tutorials I made.
http://www.acknexturk.com/blender/
Re: Jumpy movement [Re: Nowherebrain] #276985
07/07/09 10:12
07/07/09 10:12
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Why do you WANT to do it twice a frame though?
(the 'why' is important to determine a 'how')


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: Jumpy movement [Re: EvilSOB] #277023
07/07/09 12:22
07/07/09 12:22
Joined: Jul 2005
Posts: 1,002
Trier, Deutschland
Nowherebrain Offline OP
Serious User
Nowherebrain  Offline OP
Serious User

Joined: Jul 2005
Posts: 1,002
Trier, Deutschland
I have no idea, I'm just curious I guess....I can always learn more...I am not the best coder...lol
it is still doing it BTW....??? player is on terrain....I can't see anything affecting this...it is a fairly empty level....the terrain, player, and camera....???

Last edited by Nowherebrain; 07/07/09 12:24.

Everybody Poops.
here are some tutorials I made.
http://www.acknexturk.com/blender/
Re: Jumpy movement [Re: Nowherebrain] #277028
07/07/09 12:45
07/07/09 12:45
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Try dropping the trace back to this (as a test) and see if it helps. (no use_box)
c_trace(my.x,vector(my.x,my.y,(my.z - 500)),IGNORE_ME|IGNORE_PASSABLE|IGNORE_SPRITES);


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: Jumpy movement [Re: EvilSOB] #277041
07/07/09 13:13
07/07/09 13:13
Joined: Jul 2005
Posts: 1,002
Trier, Deutschland
Nowherebrain Offline OP
Serious User
Nowherebrain  Offline OP
Serious User

Joined: Jul 2005
Posts: 1,002
Trier, Deutschland
I tried this before and once again just now and it alleviates it just a bit, not completely..I do appreciate the help..this is such an odd one, but common...something so simple I cannot figure it out..I may just write something new..it'll only take about 30-40 seconds anyway...lol..I should have just done that from the get go.


Everybody Poops.
here are some tutorials I made.
http://www.acknexturk.com/blender/
Re: Jumpy movement [Re: Nowherebrain] #277045
07/07/09 13:25
07/07/09 13:25
Joined: Jul 2005
Posts: 1,002
Trier, Deutschland
Nowherebrain Offline OP
Serious User
Nowherebrain  Offline OP
Serious User

Joined: Jul 2005
Posts: 1,002
Trier, Deutschland
time_smooth solved the problem???
I went to ask a dev question and in the process solved this issue.....I guess...strange.


Everybody Poops.
here are some tutorials I made.
http://www.acknexturk.com/blender/

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