Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Tiles[x,y] On Pics1? (https://forums.graalonline.com/forums/showthread.php?t=52002)

TB3 03-28-2004 09:04 PM

Tiles[x,y] On Pics1?
 
Ok question i've reached a brain cramp.
If you need to say, showimg a part of the tileset that replicates a current section of the tiles on ground how would i find the changepart 1,x,y,16,16;
for each tile?
the x and y that is how would i use tiles[playerx,playery] that variable and turn it into an x and y for the pics1?
Or is that possible? I was thinking something on the lines of

y=int(tiles[playerx,playery]/64);
x=tiles[playerx,playery]-y;

But thats not working my god my heads hurting O_O
*Edit*
My wording is probably confusing sorry
How would I turn a tiles[x,y] into a position x,y for the tileset ?
BTW im using new order format which has not much to do with it other than it seems to work different from regular tiles. Pulling up variables and what not O_O

TB3 03-28-2004 09:21 PM

Oh YAY NEVERMIND I FOUND OUT HOW AND OMG NEW ORDER TILESET CHANGES EVERYTHING ABOUT HOW TILES ARE HANDLED BEWARE!!!
*edit*
I have created a layering system its quite simple , anyone ever see the Newworld backtile system? well I have scripted something similar it was realy realy easy ;)
I will post a version of it l8r tonight after work
However it only does transparencies for foreground objects however I will add more to it tonight ;)

Dach 03-28-2004 10:21 PM

new order and original seem to be the same, all except for the first five lines in the first segment (15 width block) those numbers are all crazy :megaeek:

but yeah, tile numbers go from left to right then down, in increments of fifteen across (goes to fifteen, then jumps down to next line) even though you already seem to have figured it out...

VeX_RaT_Boy 03-28-2004 10:25 PM

Look at my script in the NPC Showoff Thread.

TB3 03-30-2004 09:08 AM

Finished what I was working on its here
http://forums.graal2001.com/forums/s...threadid=52019


All times are GMT +2. The time now is 12:26 PM.

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