Thread: Tiles??
View Single Post
  #11  
Old 03-20-2004, 12:06 PM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
Re: Re: Re: Tiles??

Quote:
Originally posted by CyberFly

thats not what i mean!!!!

You know pics1.png? if you have the pixel-x 0 and pixel-y 16 there, you start on the flower. pixel-x 640 and pixel-y 432 is the snow flower!

Is there a way to get from those, to tiles[x,y]= number?


I have attached an image so you can see it better..
No it's not..
Each tile is 16 pixels, 16 x the number across (the number of tiles). Then do the same for the length; thats how I get the x and y (for addtiledef2).
if(tiles[playerx,playery] == value here){
Don't carry on like this :
if(tiles[playerx,playery] == value here || another || another ||etc) {
Add it into an array it's alot more better to read and all.
Well anyways I'll give you an example so that if they are on a specific tile something will happen. If some one hasn't posted by the time I get on my other computer I'll edit my post. Other than that I'll make a new post.
__________________
V$:CONFL16T
Reply With Quote