Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Old Scripting Engine (GS1) (https://forums.graalonline.com/forums/forumdisplay.php?f=154)
-   -   ladder idea wont work x.x (https://forums.graalonline.com/forums/showthread.php?t=72567)

theHAWKER 03-03-2007 09:04 PM

ladder idea wont work x.x
 
ok, so i want it to look like your player is climbing down a ladder but this wont work x.x
PHP Code:

//#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

Quote:

Originally Posted by theHAWKER (Post 1284142)
ok, so i want it to look like your player is climbing down a ladder but this wont work x.x
PHP Code:

//#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

Quote:

Originally Posted by theHAWKER (Post 1284153)
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


All times are GMT +2. The time now is 10:31 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.