My attempt at a grappling hook
I have made a pretty poor grappling hook and done it a weird way but oh well lol it still works. I was wondering if anyone would happen to have any knowledge on how to make it so you could hit a player and press a to reel them towards you maybe lmao.
Also how would I detect if it hits lets say for instance a bush? then it could change the bush tiles to cut down bush tiles, I know how that is done, Via tiles and updateboard. But the detection of specific tiles I'm unsure of. Here's my script so far. PHP Code:
|
You should really post a video, an image or something so we can see what your scripts actually do.
|
Quote:
http://forums.graalonline.com/forums...hp?t=134258695 http://forums.graalonline.com/forums...ad.php?t=73784 |
Quote:
Instead of writing all these seperate statement it's possible to compact them PHP Code:
Also callimuc is correct in advising you to use updateboard although in my past the respawn method for those tiles becomes a bit messy which is something to keep in mind. None the less... you're on the right track so far, keep at it :) |
I'm ok with maths lol.. I know that *-1 would be the opposite of *0.5
But thanks, I'm thinking on also adding a grab function so the player presses a button to toggle modes. Modes: Grab, Pull Grab will grab a player and pull them in, Pull will grab an object and allow you to reel in. And thanks for the for loop didn't even think of doing sone thing like that. |
Quote:
Multiplying something by -1 would just return the negative of that number. Multiplying by .5 is the same as dividing a number by 2... I dont see how those two things are opposite. |
I beleive he was referring to my the 0.5 in my example.
0.5 * -1 = -0.5 -0.5 * -1 = 0.5 Is what I think he meant, oh well... Also I just spotted this: PHP Code:
PHP Code:
|
Quote:
|
All times are GMT +2. The time now is 05:59 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.