Thread: onwater()
View Single Post
  #5  
Old 06-04-2010, 11:21 PM
sssssssssss sssssssssss is offline
Cyril Rain
sssssssssss's Avatar
Join Date: May 2003
Location: Texas, USA
Posts: 1,134
sssssssssss will become famous soon enough
Quote:
Originally Posted by DustyPorViva View Post
Move is a preexisting function :P Try renaming it.

Also, you can just do something like this:
PHP Code:
function MoveFish() {
  if (!
onwater(this.x+1.5,this.y+2)) return;
  
this.return = int(random(0,50));
  if(
this.return > 45) {
    
// stuff
  
}

'return' will stop the function immediately.

Also, it may be a problem with some sort of level thing... I doubt it, but try something like:
this.level.onwater(x,y);
Neither works.
__________________
Cyril Rain
Creator and leader of SLX
Admin of Elysium
Elysium's Facebook Page: http://facebook.com/GraalOnlineElysium
Graal Forum Thread: http://forums.graalonline.com...
Graalians Thread: http://www.graalians.com...


Reply With Quote