Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-21-2002, 05:35 AM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
help please

okay, im starting to use addtiledef and addtiledef2

now, i made one tile (16x16) for a grass tile

now how do i use addtiledef and addtiledef2 to replace the other grass tiles

i've tried using the x and y in pics1.png for the grass tile, the x and y in the level, and various other ways

can someone please explain please
__________________
[signature]insert here[/signature]
Reply With Quote
  #2  
Old 03-21-2002, 06:27 AM
neomaximus2k neomaximus2k is offline
Registered User
Join Date: Feb 2002
Location: UK
Posts: 324
neomaximus2k is on a distinguished road
Send a message via ICQ to neomaximus2k
Re: help please

Quote:
Originally posted by screen_name
okay, im starting to use addtiledef and addtiledef2

now, i made one tile (16x16) for a grass tile

now how do i use addtiledef and addtiledef2 to replace the other grass tiles

i've tried using the x and y in pics1.png for the grass tile, the x and y in the level, and various other ways

can someone please explain please
if i can recall it is somet like

addtiledef2 grass.png,0,0,16,16
basicly
image,X,Y,width,height
__________________
Beware of thy Inner self
NPC Code:

_.,.__
((o\\o\))
.-. ` \\``
__( )___.o"".,___
=== ~~~~~~~~
==
= Neo

Reply With Quote
  #3  
Old 03-21-2002, 07:43 AM
SaijinGohan SaijinGohan is offline
Registered User
SaijinGohan's Avatar
Join Date: Jul 2001
Location: U.S.A - Ohio
Posts: 536
SaijinGohan is on a distinguished road
Send a message via AIM to SaijinGohan Send a message via MSN to SaijinGohan
addtiledef2 image,level,x coordinate for pics1,y coordinate for pics1
__________________

Job: A Legend

And you think that you have played Graal forever? Ha!
Reply With Quote
  #4  
Old 03-21-2002, 07:45 AM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
but what if the image has more than one tile in it

say i have a image 32x32 with a grass tile, flower, and then under those 2 water tiles

how would i get those to replace the other ones properlly
__________________
[signature]insert here[/signature]
Reply With Quote
  #5  
Old 03-21-2002, 09:13 AM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
okay everyone, i figured it out

thanks though
__________________
[signature]insert here[/signature]
Reply With Quote
  #6  
Old 03-21-2002, 08:18 PM
Spanko Spanko is offline
Squeaker of Soles
Spanko's Avatar
Join Date: Nov 2001
Location: The Netherworl...lands
Posts: 1,366
Spanko is on a distinguished road
Send a message via ICQ to Spanko Send a message via AIM to Spanko Send a message via Yahoo to Spanko
For other people who're wondering, the x and y in addtiledef2 are in fact the exact location in pixels on the image pics1.png (Or whatever your tileset is at that time)
__________________

ICQ: 125283920
MSN: [email protected]
AIM: Squeax0r
Squeaker seems unable to access the forum using this account.. tis a sad day.
Now with occasional Asuka flavour! Ooops a bit too much...
Asuka should be king of Dustari!

"Y'know, some days even my lucky rocketship underpants don't even help."
Reply With Quote
  #7  
Old 03-21-2002, 10:30 PM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
yeah, thats what i finally figured out

anyways, i just copied the whole pics1.png and then starting making tiles and replaced whatever they were on the pics1

and just set the tiledef at 0,0



anyways
__________________
[signature]insert here[/signature]
Reply With Quote
  #8  
Old 03-21-2002, 10:32 PM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
a WHOLE NEW tileset just for a couple tiles? My firend, i think that defeats the purpose....
__________________

subliminal message: 1+1=3
Reply With Quote
  #9  
Old 03-22-2002, 12:31 AM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
Quote:
Originally posted by Falcor
a WHOLE NEW tileset just for a couple tiles? My firend, i think that defeats the purpose....
but im starting to redo everything
__________________
[signature]insert here[/signature]
Reply With Quote
  #10  
Old 03-22-2002, 01:07 AM
neomaximus2k neomaximus2k is offline
Registered User
Join Date: Feb 2002
Location: UK
Posts: 324
neomaximus2k is on a distinguished road
Send a message via ICQ to neomaximus2k
Quote:
Originally posted by screen_name

but im starting to redo everything
yes it is but why not just use addtiledef not addtiledef2???
__________________
Beware of thy Inner self
NPC Code:

_.,.__
((o\\o\))
.-. ` \\``
__( )___.o"".,___
=== ~~~~~~~~
==
= Neo

Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:39 PM.


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