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
0 registered members (), 18,767 guests, and 5 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
Page 3 of 4 1 2 3 4
Re: ladder detection [Re: Random] #312688
02/25/10 23:22
02/25/10 23:22
Joined: May 2009
Posts: 5,377
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,377
Caucasus
I know, it works laugh but not the way I want it to... Need to calculate in x coordinates, and make player leave the ladder as soon, as he turns away from it... But have no idea how to make all that... frown


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: ladder detection [Re: 3run] #313189
02/28/10 08:46
02/28/10 08:46
Joined: May 2009
Posts: 5,377
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,377
Caucasus
Can some very kind person, help me to calculate dist from ladder to player in X coordinates? It's already done, but only in Y and Z coordinates... Need the same thing but only in X coordinates. I know, I'm not making any sense by just always asking for it... But this piece of player movemet really makes me going crazy... I've done every thing in player movement script for my FPS game called War Cloud. Only two things left... First is this ladder script (damn I really hate it frown )... And second is elevators, but it will be easy to do... With help of AUM tutorials laugh I've tryed to get all that to work by myself... You can see it from my scripts I've posted... But I always fail frown can't make the player leave the damn ladder when he walks away from it in X coordinates...


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: ladder detection [Re: 3run] #313223
02/28/10 13:18
02/28/10 13:18
Joined: May 2009
Posts: 5,377
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,377
Caucasus
Really need some ones help frown I can't figure out this alone...


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: ladder detection [Re: 3run] #313227
02/28/10 13:34
02/28/10 13:34
Joined: Dec 2006
Posts: 1,086
Queensland - Australia
Nidhogg Offline
Serious User
Nidhogg  Offline
Serious User

Joined: Dec 2006
Posts: 1,086
Queensland - Australia
Try something like,
if (player.pan && (player.z = ?)
{
exit ladder;
return;
}

Last edited by Nidhogg; 02/28/10 13:35.

Windows XP SP3
Intel Dual Core CPU: E5200 @ 2.5GHz
4.00GB DDR3 Ram
ASUS P5G41T-M LX
PCIE x16 GeForce GTS 450 1Gb
SB Audigy 4
Spyware Doctor with AntiVirus
Re: ladder detection [Re: Random] #313311
02/28/10 17:55
02/28/10 17:55
Joined: May 2009
Posts: 5,377
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,377
Caucasus
I've tried similar to Z coordinates, like this:
if(player.x + player.min_x - 30 > my.max_x)
{
break;
climb = 0;
}
But not working any way... frown played with 30, doesn't make any sense... Now I hate ladder man... frown


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: ladder detection [Re: 3run] #313359
02/28/10 23:20
02/28/10 23:20
Joined: May 2009
Posts: 5,377
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,377
Caucasus
No one giving me the answer, for question I'm asking for... Is that so hard to help such newbie as me? Only thing I'm asking for is calculating distanse from ladder to player as it is already done in Y coordinates, need the same, but only in X coordinates, so if player for example walks backwards (or forward) from the ladder, and distanse is bigger for example than 15 (or smaller than -15), then player must leave the ladder... Will be very effective to create a ladder script I guess... I've stucked in this damn piece of script... frown no problem with leaving the ladder, if player turned away from it, I'll fix it on myself, that will be very easy, player will be not able to turn away from it, he can only look around. I understand that I'm really badass and may be even asking too much, but I really stuck here frown please some one, be so kind and help me. I'll be really grateful and will add name of person who will help me out, in the credits of my game, as a programmer that helped me with my game...


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: ladder detection [Re: 3run] #313368
03/01/10 00:39
03/01/10 00:39
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
if(vec_dist(vector(ladder.x,ladder.y,0),vector(player.x,player.y,0)) > 20) {}


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: ladder detection [Re: Superku] #313390
03/01/10 09:25
03/01/10 09:25
Joined: May 2009
Posts: 5,377
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,377
Caucasus
Thank you bro, but I've tried like that already... Doesn't work frown it calculates distanse only from the center of the model... Works if player is in the middle of the ladder... If in the top for example, doesn't help... frown


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: ladder detection [Re: 3run] #313496
03/01/10 18:47
03/01/10 18:47
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline
Senior Expert
Pappenheimer  Offline
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Is your ladder actually upright? Superku's line should work independently whether the player is in the middle or at any end of the ladder, because of the zero at the z value of the vectors.

Just an idea, replace "0" in both vectors by "player.z".

Re: ladder detection [Re: Pappenheimer] #313498
03/01/10 18:54
03/01/10 18:54
Joined: May 2009
Posts: 5,377
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,377
Caucasus
Now it works well... Just need some testing and ladder script need some improvements laugh Thank you Superku!!! You're the best! laugh I'll add you in the credits of my project laugh Thank you all!


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Page 3 of 4 1 2 3 4

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