View Single Post
  #3  
Old 10-02-2011, 06:30 PM
Emera Emera is offline
Delterian Hybrid
Emera's Avatar
Join Date: Mar 2011
Location: Newcastle Upon-Tyne
Posts: 1,704
Emera is a jewel in the roughEmera is a jewel in the rough
Quote:
Originally Posted by fowlplay4 View Post
You could just draw 64 horizontal lines, and 64 vertical lines to 'outline' it.

I.e:

PHP Code:
//#CLIENTSIDE
function onCreated() {
  for (
temp.x = 0; temp.x < 64; temp.x++) {
    
with (findimg(200 + temp.x)) {
      
polygon = {
        
temp.x, 0, temp.x, 64
      
};
    }
  }
  for (
temp.y = 0; temp.y < 64; temp.y++) {
    
with (findimg(300 + temp.y)) {
      
polygon = {
        
0, temp.y, 64, temp.y
      
};
    }
  }
} 
You'll have to tweak for GMAPs though by calculating the top-left position. You can see how I do it in my OLNE code.
I just found through echoing that the level width is 640 x 640 (64 X 64)
I have been studying your code for neatly 2 hours and I seem to be getting nowhere.
__________________
Reply With Quote