Thread: onwall2() issue
View Single Post
  #1  
Old 03-19-2012, 06:12 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
onwall2() issue

It's been awhile since I've used GS2, so I may just be missing something completely obvious. Any who, I'm getting into the swing of things and I start making an online baddie, when do movement checks onwall2() always returns true. I have set the shape and the checks are outside this. When I put the baddie on the clientside though, the onwall2() works properly.

Here's the script part :

PHP Code:
        this.dir getdirthis.nx this.xthis.ny this.y);
        
temp.cX this.dir in 13}? this.dir == 1this.1this.3.5this.0.5;
        
temp.cY this.dir in 02}? this.dir == 0this.1this.3.5this.1;
        
temp.cW absvecythis.dir)) + 1;
        
temp.cH absvecxthis.dir)) + 1;

        if ( !
onwall2temp.cXtemp.cYtemp.cWtemp.cH) && !onwater2temp.cXtemp.cYtemp.cWtemp.cH))
        { 
__________________
Deep into the Darkness peering...
Reply With Quote