Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   setplayershape() (https://forums.graalonline.com/forums/showthread.php?t=86256)

salesman 06-10-2009 12:19 AM

setplayershape()
 
or something similar would be quite useful.

Rather than developing some kind of custom hit detection everytime we need the player's "body" to be larger than normal, it would be great if we could do something like setplayershape(64, 64);

One example is cars on Era. The car itself is nonblocking (it's just an animation following the player around), and makes things look very sloppy. If the player's shape were adjusted to the size of the car, we could do all kinds of things....

Along with this it might be nice to include a player.blockAgain(); and player.dontBlock(); as well as a player.width player.height. I believe these were already suggested, but I couldn't find the thread.

Angel_Light 06-10-2009 01:39 AM

seems like onwall2() can do all you want it too do

cbk1994 06-10-2009 01:49 AM

No, it can't. onwall2 doesn't even come close.

player.setshape(x, y, width, height) would be better, where (0, 0) is the top-left point of the normal player, therefore player.setshape(-1, -1, 2, 2) would cause them to block one tile above and to the left more than usual.

fowlplay4 06-10-2009 04:39 AM

This would be great.

onwall2 sucks :(, need an onwall3 that accepts an array of positions. ( think image polygons )

cbk1994 06-10-2009 05:19 AM

Quote:

Originally Posted by fowlplay4 (Post 1498270)
This would be great.

onwall2 sucks :(, need an onwall3 that accepts an array of positions. ( think image polygons )

Yeah, we've been requesting that forever :(

salesman 07-30-2009 02:12 AM

Bump because this would be extremely useful and I can't imagine it being that hard to add.

Pelikano 07-30-2009 01:26 PM

What happened to you tank, btw?

cbk1994 07-31-2009 04:35 AM

Something like

PHP Code:

player.setshape(x1y1x2y2x3y3x4y4); 

would be nice as well; it would allow for things like cars to work (which are rectangles, but can turn). One that works with polys would be nice as well.


All times are GMT +2. The time now is 04:30 AM.

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