Bombs on Gmap
How do I get bombs to show up on the gmap? For some reason my bombs aren't showing up on the gmap!:(
|
post your script. the fix is often putbomb(1, x % 64, y % 64).
|
Quote:
|
This is what I have, I just implemented what you gave me:
NPC Code://#CLIENTSIDE |
you should
A.) check the player has enough bombs before placing it B.) reference the object to whose x/y you're referring (player.x, player.y); C.) add else statements between each if so 4 evals aren't made every time. |
Quote:
You may or may --^ not be able to see the bold here. |
Quote:
PHP Code:
http://forums.graalonline.com/forums...highlight=vecx |
yeah i fogot to add player. but I added that right after, and it works good. thank you guys.
I also added the bomb check to make sure player has bombs. |
And I still can't understand the vecx and vecy for some reason x.x
|
So now I have this and it still doesn't place the bomb on the gmap:
PHP Code:
|
idk what version of Graal you're using but like I said there was a weird behavior between v5 and v6 where one expects a level x y, and the other expects a gmap x y
|
PHP Code:
|
Quote:
thing of the results from vecx and vecy as points on a cartesian graph value| vecx | vecy | corresponding direction 0 | 0 | -1 | up 1 | -1 | 0 | left 2 | 0 | 1 | down 3 | 1 | 0 | right soz I had neat columns and the forums took them away :( |
Just for you trix
http://uploads.graalcenter.org/upload/neatcollums.PNG |
ah thanks guys. :)
yeah i can tweak it to my needs. Thanks Emera |
All times are GMT +2. The time now is 06:19 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.