PDA

View Full Version : ladder idea wont work x.x


theHAWKER
03-03-2007, 09:04 PM
ok, so i want it to look like your player is climbing down a ladder but this wont work x.x
//#CLIENTSIDE
if (created) {dontblock;drawunderplayer;
setimg gl_stairs.png;
}
if(created||timeout){
timeout=.05;
if(playertouchsme){
playerdir=0;
}
}
so can someone help me out?

Kristi
03-03-2007, 09:08 PM
ok, so i want it to look like your player is climbing down a ladder but this wont work x.x
//#CLIENTSIDE
if (created) {dontblock;drawunderplayer;
setimg gl_stairs.png;
}
if(created||timeout){
timeout=.05;
if(playertouchsme){
playerdir=0;
}
}
so can someone help me out?

dontblock cancels out playertouchs me i believe, and playertouchsme is an event, not a flag to check.

if i were you id test the player's x and y to see if they are in the right place to be on the ladder.

theHAWKER
03-03-2007, 09:21 PM
how would i do that?
if (playerx=32) {the script?

Kristi
03-03-2007, 09:26 PM
how would i do that?
if (playerx=32) {the script?

im thinking something like if (playerx in |x - whatever,x+whatever|) but whatever you want to do