Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   Sizing HELP (https://forums.graalonline.com/forums/showthread.php?t=134264035)

greggiles 07-30-2011 01:37 PM

Sizing HELP
 
im makeing a baddie and im trying to make him easier to hit. so i want to increase the size of him (the "hit box"). i think thats what you call it.

How do i increase the size of this?

ffcmike 07-30-2011 04:08 PM

If you use
PHP Code:

setshape(1widthinpixelsheightinpixels);
//for instance: this.setshape(1, 48, 48); 

this will set the blocking shape size of the NPC, then you could for instance re-adjust any ganis for the shape to be centred.
Unfortunately using showcharacter(); enforces a blocking shape of 32 x 32 pixels offset by 0.5 x and 1 y (same as players).

greggiles 07-30-2011 04:31 PM

i tried it but it still seems like i have to be just as close to dmg the baddie as it was default, i tried it different ways to and put the number way up :/

ffcmike 07-30-2011 04:37 PM

Quote:

Originally Posted by greggiles (Post 1660892)
i tried it but it still seems like i have to be just as close to dmg the baddie as it was default, i tried it different ways to and put the number way up :/

Depending on whether the baddy is serverside or clientside, are you trying this on whatever is relevant to receiving the default damage trigger?
I'm not entirely sure how default works compared to having custom damage triggers though, you may need to set the shape both clientside and serverside if it's a serverside baddy.

And are you sure showcharacter(); is not being used?
If it is, this is forcing a shape of 32 x 32 pixels, which even setshape cannot modify.

greggiles 07-30-2011 04:38 PM

actually i figured it out. THANKS

ff7chocoboknight 07-30-2011 05:52 PM

Thanks for not telling us what the problem was.

fowlplay4 07-30-2011 07:13 PM

Quote:

Originally Posted by greggiles (Post 1660894)
actually i figured it out. THANKS

Given that the forums is one of the most helpful resources for scripting, it really helps to let us know what you did to solve your problem.

So in the event someone else experiences the same problem, they'll be able to see your solution.

greggiles 07-30-2011 09:28 PM

to fix it you HAVE to make sure showcharacter(); is not in the script. then it should work fine


All times are GMT +2. The time now is 03:28 PM.

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