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 (Ayumi, NewbieZorro, TipmyPip), 13,888 guests, and 6 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
Gravity Script #203913
04/24/08 23:01
04/24/08 23:01
Joined: Apr 2008
Posts: 10
C
Chavias Offline OP
Newbie
Chavias  Offline OP
Newbie
C

Joined: Apr 2008
Posts: 10
Hi,
Im pleading to anyone to help me, with the final touch to my project!
Basically, I need a working script for gravity in Lite-C script. I would prefer a standalone script, but anything will be appreciated.

Thanks in advance.

James,

Re: Gravity Script [Re: Chavias] #203914
04/24/08 23:19
04/24/08 23:19
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
no one can't give you a %100 working script without knowing your code.

And there are several ways to simulate gravity depending on the project. Tell us about your technique and then we can suggest solutions(as i said no one can offer %100 working script).


3333333333
Re: Gravity Script [Re: Quad] #203960
04/25/08 11:40
04/25/08 11:40
Joined: Apr 2008
Posts: 10
C
Chavias Offline OP
Newbie
Chavias  Offline OP
Newbie
C

Joined: Apr 2008
Posts: 10
hmm... My technique isnt too advanced - I prefer to use quite a few if statements, with the inclusion of some predefines (eg: c_move,ent_move...) Other than that, my technique doesnt exist - In a way im still finding my feet with GS. Can you suggest a possible script for gravity (thats not me being protective, just generally clueless...)

Re: Gravity Script [Re: Chavias] #203961
04/25/08 11:46
04/25/08 11:46
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
then you may have a look in to David Lancaster's KH movement tut. Wiki Link

it basically, scans for the floor, and if player is above the floor, it moves the player on z axis with c move.


3333333333
Re: Gravity Script [Re: Quad] #204057
04/26/08 00:50
04/26/08 00:50
Joined: Aug 2003
Posts: 7,440
Red Dwarf
Michael_Schwarz Offline
Senior Expert
Michael_Schwarz  Offline
Senior Expert

Joined: Aug 2003
Posts: 7,440
Red Dwarf


"Sometimes JCL reminds me of Notch, but more competent" ~ Kiyaku
Re: Gravity Script [Re: Michael_Schwarz] #206074
05/11/08 01:35
05/11/08 01:35
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline
Serious User
DLively  Offline
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
works for c-script, not sure if it works for lite-c... but you can try

-----------------------------------------

function gravity(){

vec_set(temp, my.x);
temp.z = -999999;
trace_mode = use_box + ignore_me + ignore_passents + ignore_passable;
-trace(my.x, temp);

if(result > 10){my.skill3 -= 150 * time;}
else{my.skill3 = -trace(my.x, temp) * 1;}

//c_move(me, my.skill1, nullvector, glide);

}


hope it helps.


A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com

Moderated by  adoado, checkbutton, mk_1, Perro 

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