Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-06-2017, 04:05 PM
maximus_asinus maximus_asinus is offline
RIP DarkCloud_PK
Join Date: Oct 2001
Location: Canada
Posts: 3,746
maximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond repute
Ignoring blocking tiles?

PHP Code:
function onCreated() {
  
setshape2(10,10,{
    
11,11,11,11,11,11,11,11,11,11,
    
11,11,11,11,11,11,11,11,11,11,
    
11,11,11,11,11,11,11,11,11,11,
    
11,11,11,11,11,11,11,11,11,11,
    
11,11,11,11,11,11,11,11,11,11,
    
11,11,11,11,11,11,11,11,11,11,
    
11,11,11,11,11,11,11,11,11,11,
    
11,11,11,11,11,11,11,11,11,11,
    
11,11,11,11,11,11,11,11,11,11,
    
11,11,11,11,11,11,11,11,11,11,
  });
  
showpoly(200,{30,30,40,30,40,40,30,40});
  
with (findimg(200)) {
    
red 0;
    
green 0;
    
blue 1;
    
alpha 0.75;
    
layer 0;
  }

I'm trying to emulate the rising water from Link to the Past. This method gives me the desired effect visually, but I still need to override the blocking tiles in the affected area to turn them into swimming tiles.



My best method would be to draw the castle tiles on another layer, put non-blocking tiles underneath, and then use setshape to block the player when the water is drained. I'm just wondering if there is a better way.
Attached Thumbnails
Click image for larger version

Name:	test.png
Views:	368
Size:	23.6 KB
ID:	56012  
__________________
Save Classic!
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 12:36 AM.


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