canbepushed(); doesnt work if theres a wall on each side??
1 Attachment(s)
PHP Code:
PHP Code:
|
There is a few good solutions. One being, you could always make those two cavern pillars images and use setshape2. Another one one be to script your own push and pull system, that graal one is kinda sucky.
|
This bug has been around forever. There's a "pushpull" class in my Atlantis package you should check out.
|
is your block.png definitely 32 x 32 pixels?
the mainfile is 32 x 32, however i swear there has been at least one server with a 33 x 32 version of block.png that people have been downloading the entire time |
Quote:
|
Quote:
|
Quote:
I guess I have enough to solve my problem. I just needed to be able to push this block 1 direction, until it hit the wall. and with that function alone I can pretty easily do that without any wall checks even. |
Only limitations were that the size of the object had to be 2x2 tiles. I was going to expand it to work with a dynamic object size, but never really got to it. The hourglass was for, well, the hourglass on Atlantis, which we used to reset puzzle objects and the player location in dungeons. Kinda like Lufia 2 does it.
|
Ahh makes sense. Well its definitely a nice script. Appreciate you sharing it. I am asumming to make it dynamic size you would open the image and get the width/height from it and round up it to the nearest 16 pixels?
|
Quote:
|
All times are GMT +2. The time now is 06:09 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.