![]() |
Making A Gps
Iv made the base script im just wondering how to get the x and y's right and moving here is the base
what im wonding how to do is making the markers x in the centre of the background and the dot centered when the player writes /setgps then when the player moves the dot will move either down up right left or diagonally depending where the player is to where the marker is. i cant figure out how to make the max dots x and y depending on how big the gmap is and making it only move a tiny bit. PHP Code:
|
For the nth time, please style your code before posting it in the scripting forums.
If the map is to be 100x100 pixels, and the actual map is 12x12 levels, you can calculate that the map is 768x768 tiles (64 tiles in a row/column per level). http://uploads.graalcenter.org/upload/eqn2004.png is the number of pixels each tile represents on your map horizontally (the same vertically if it's a square). Then, to figure out where to draw markers, PHP Code:
|
I have to go out on public transport so i finished writing my goal while being on the bus, which i sill am on.
also sorry for not styling it. il try to do so now on my idevice if i can. |
Style your code!
*EDIT* Or I shall become enraged! |
Quote:
|
| All times are GMT +2. The time now is 01:11 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.