View Single Post
  #32  
Old 12-22-2010, 01:48 AM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
Quote:
Originally Posted by fowlplay4 View Post
Try this:

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
addtiledef("npulse_outside_tiles.png""npulse_"1);
  
addtiledef("npulse_outside_tiles.png""stafflevel_"1);
  
addtiledef("npulse_inside_tileset.png""npulse_inside_"1);

addtiledef in a timeout loop is just bad...
Not just bad but completely un-necessary in this case due to the fact the addtiledef functions contains a levelstart parameter as you've shown.

Quote:
Originally Posted by SlikRick View Post
PHP Code:
 if (player.level.name.starts("npulse_") && player.level.name.starts("stafflevel_")) 
Probably also worth mentioning that it is an impossibility for both of these conditions to be true.
Reply With Quote