Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
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
2 registered members (NnamueN, 1 invisible), 1,489 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Jump script help #44849
04/25/05 17:16
04/25/05 17:16
Joined: Apr 2002
Posts: 117
Spain
Abstracto Offline OP
Member
Abstracto  Offline OP
Member

Joined: Apr 2002
Posts: 117
Spain
Hi,

I need an action for an entity,
im not sure how to make it work fine...
i think using physiscs is the best way
The entity can jump upward and forward
(when i press a key) and rotate both sides (with 2 keys).
The entity will have a low bounciness,
and if the entity falls a big distante,
he is dead.
I need also to detect if the entity falls and he is
not on his foots. in such case, the entity can jump a bit upwards
and fall but on his feet.

Can anyone help me with the script?
Thanks!

Re: Jump script help [Re: Abstracto] #44850
04/27/05 13:03
04/27/05 13:03
Joined: Mar 2004
Posts: 217
UK (Peterborough)
KyiasShadow Offline
Member
KyiasShadow  Offline
Member

Joined: Mar 2004
Posts: 217
UK (Peterborough)
What version of 3DGS are you using?

It might be best to use the FAKE gravity affect that LOCO helped me out on. im not sure how you would detect if the player is falling you could use a timer fomr when they jump. This script does not have a jump script in it so you would have to add this because i did not add it to it.
var absforce[3]; // define this within move_player()
var height;
var vecTo[3];

vec_set(vecTo,my.x);
vecTo.z -= 4000;
trace_mode = ignore_me+ignore_sprites+ignore_passable+ignore_passents+use_box;
result = trace(my.x,VecTo.x);
height = result + my.min_z; // get actual height off of ground

if(height > -my.min_z*.5) // if height greater than knee height, use down force with move (fall)
{
absforce.z = - 1;
}
else // if height less than knee height, just place to floor
{
absforce.z = 0;
my.z -= result;
}
move_mode = IGNORE_PASSABLE+GLIDE;
result = ent_move(my.force_x,absforce);

You will have to ad dthe jump to teh above and this. Add this into your move function. some where neer the end.


A6 Commercial V6.3 1024MB DDR RAM P4 2.8GHz 256MB GeForce FX 5600 160GB HDD
Re: Jump script help [Re: KyiasShadow] #44851
05/06/05 17:16
05/06/05 17:16
Joined: Apr 2002
Posts: 117
Spain
Abstracto Offline OP
Member
Abstracto  Offline OP
Member

Joined: Apr 2002
Posts: 117
Spain
Im using A6.30 Pro


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