Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (NewbieZorro, TipmyPip, 1 invisible), 19,045 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Land Shaking #41058
02/14/05 05:58
02/14/05 05:58
Joined: Jan 2005
Posts: 72
Cairo, Egypt
Sanfir Offline OP
Junior Member
Sanfir  Offline OP
Junior Member

Joined: Jan 2005
Posts: 72
Cairo, Egypt
Hi;
I'm starting a new game with A6, but I got a problem in the level rendering.
whenever the player (or may be the camera attached to him) gets close to a boundary wall, the whole level starts to shake strongly, and the closer I get to the wall, the stronger the shake..
Please help..
P.S. I'm not using any templates, the script is all my own.


There are two ways to write an error free code, only the third one succeeds!! ramy.wassef@gmail.com
Re: Land Shaking [Re: Sanfir] #41059
02/14/05 06:09
02/14/05 06:09
Joined: Sep 2004
Posts: 38
USA
A
Archangel Offline
Newbie
Archangel  Offline
Newbie
A

Joined: Sep 2004
Posts: 38
USA
Its probably the camera as you said.

If you have a camera that is tied to the player, and some part of the physics code makes the player jitter, then your camera view will do likewise. One thing that is useful in writing physics code is tolerances. Don't have code that says if your player elevation is above zero then fall, if below zero then spring up. The times that I have experienced jittering in my physics code is when I didn't allow tolerances, and also when I expected movement to be instantaneous. Don't have your camera or your player move the entire distance in one frame. Spread it out over several frames, maybe as much as a few seconds worth even.

These are the most useful pieces of advise I can offer without seeing the code.


[color:"blue"]Archangel[/color]

nordster.com
Re: Land Shaking [Re: Archangel] #41060
02/14/05 06:18
02/14/05 06:18
Joined: Jan 2005
Posts: 72
Cairo, Egypt
Sanfir Offline OP
Junior Member
Sanfir  Offline OP
Junior Member

Joined: Jan 2005
Posts: 72
Cairo, Egypt
Thank You;
I was about to say that I'm not using any physics in my game so far, when I remembered my Move_Gravity() function, the problem seems to be there as I was trying to have my entities two unit above the ground, while gravity was pulling them down again..

Thanks again, that was a stupid mistake of mine.


There are two ways to write an error free code, only the third one succeeds!! ramy.wassef@gmail.com

Moderated by  HeelX, Spirit 

Gamestudio download | 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