Gamestudio Links
Zorro Links
Newest Posts
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, VoroneTZ, 1 invisible), 1,578 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 3 1 2 3
Re: Cbabe and stairs [Re: Erick_Castro] #302476
12/19/09 19:33
12/19/09 19:33
Joined: Sep 2009
Posts: 496
P
Progger Offline
Senior Member
Progger  Offline
Senior Member
P

Joined: Sep 2009
Posts: 496
it worked fine by me but the level isnt as big as in the video
i have only the stairs but it is good (:


asking is the best Way to get help laugh laugh laugh
Re: Cbabe and stairs [Re: Progger] #302485
12/19/09 20:47
12/19/09 20:47
Joined: Mar 2009
Posts: 207
E
Erick_Castro Offline OP
Member
Erick_Castro  Offline OP
Member
E

Joined: Mar 2009
Posts: 207
progger, i am glad it works to you.
Try to dowonload it again.
I uploaded the same of the video.

Re: Cbabe and stairs [Re: Erick_Castro] #302573
12/20/09 15:50
12/20/09 15:50
Joined: Nov 2009
Posts: 96
philippines
joh Offline
Junior Member
joh  Offline
Junior Member

Joined: Nov 2009
Posts: 96
philippines
It's working but i haven't try it to other file though... can't i use other model for it?

Last edited by joh; 12/20/09 15:56.
Re: Cbabe and stairs [Re: joh] #302599
12/20/09 18:56
12/20/09 18:56
Joined: Mar 2009
Posts: 207
E
Erick_Castro Offline OP
Member
Erick_Castro  Offline OP
Member
E

Joined: Mar 2009
Posts: 207
Of course, joh. You have to change the model Z point to the base of the model
I changed (moved) in MED the Z position of cbabe to her feet.
look in this picture the only change you have to make to any model.

http://www.prodigweb.com/descargas/babebase.jpg

So, when you aply this code to any other model , be sure about make that.
and the model you are using have the "run" animation frames and "idle" or "stand" animation frames.



Last edited by Erick_Castro; 12/20/09 19:18.
Re: Cbabe and stairs [Re: Erick_Castro] #302601
12/20/09 19:13
12/20/09 19:13
Joined: Mar 2009
Posts: 207
E
Erick_Castro Offline OP
Member
Erick_Castro  Offline OP
Member
E

Joined: Mar 2009
Posts: 207
Joh
this is another example of the same code aplied to other model.
Look

http://www.youtube.com/watch?v=4pCwvXh5ukU

Re: Cbabe and stairs [Re: Erick_Castro] #302612
12/20/09 20:14
12/20/09 20:14
Joined: Dec 2008
Posts: 1,660
North America
Redeemer Offline
Serious User
Redeemer  Offline
Serious User

Joined: Dec 2008
Posts: 1,660
North America
This code would be better if the origin didn't have to be placed at the model's feet. If the origin is at the model's feet, the model will easily move through ceilings and stuff, which looks really bad.

You should create bounding boxes for your entities instead, and leave their origin in the center.


Eats commas for breakfast.

Play Barony: Cursed Edition!
Re: Cbabe and stairs [Re: Redeemer] #302624
12/20/09 21:16
12/20/09 21:16
Joined: Mar 2009
Posts: 207
E
Erick_Castro Offline OP
Member
Erick_Castro  Offline OP
Member
E

Joined: Mar 2009
Posts: 207
i dont understand your point, redeemer. The model cant go trough walls or ceilings. I think the origin at the feet is more logical than the midlle. Do you have some better example to share. I would like if somebody else can help us to improve it.

Thanks

Last edited by Erick_Castro; 12/20/09 21:21.
Re: Cbabe and stairs [Re: Erick_Castro] #302627
12/20/09 22:11
12/20/09 22:11
Joined: Mar 2009
Posts: 207
E
Erick_Castro Offline OP
Member
Erick_Castro  Offline OP
Member
E

Joined: Mar 2009
Posts: 207
Redeemer. I understood your point.
well, i will work to improve it. I have to tell you this code is developed with the colaboration of a spain friend of the forum called TXesmi.

Re: Cbabe and stairs [Re: Erick_Castro] #302657
12/21/09 08:04
12/21/09 08:04
Joined: Nov 2009
Posts: 96
philippines
joh Offline
Junior Member
joh  Offline
Junior Member

Joined: Nov 2009
Posts: 96
philippines
im having problem with my stairs can you help me? my stairs is floating frown that's why i can't try my character to climb on it

function control_stairs(){
my.passable = off;
my.push = 100;
my.scale_x = 1;
my.scale_y = 1;
my.scale_z = 1;



my.x = 100;
my.y = 100;
my.z = 100;
}

Re: Cbabe and stairs [Re: joh] #302664
12/21/09 09:54
12/21/09 09:54
Joined: Jan 2004
Posts: 2,062
Hamburg, Germany
slacer Offline
Expert
slacer  Offline
Expert

Joined: Jan 2004
Posts: 2,062
Hamburg, Germany
The idea to have the models origin NOT at their feet, is to be able to walk up stairs and to prevent from stuck in a terrain or uneven block dungeon.

There should be lot of scripts showing how to use min_z and floor in order to glue the model to the ground without sinking in the floor or floating above it.

Try solid stairs to see if your model is capable to climb the stairs. If the models origin is below the stairs surface, it will not climb it.

Page 2 of 3 1 2 3

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