The Daily Click ::. Forums ::. Klik Coding Help ::. Removable Tiles
 

Post Reply  Post Oekaki 
 

Posted By Message

erghhhhx



Registered
  15/11/2007
Points
  311

Mushroom
12th October, 2008 at 14:44:33 -

I have a problem, yes. I want my tiles to change grapchic depending on how many tiles there are around it and WHERE the other tiles are.

I've tried EVERYTHING (well, probably not) without gettin' it to work. Would be so nice...


Something like this--
Image


Help much appreciated!

 
n/a

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1970

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
12th October, 2008 at 16:37:00 -

I covered this in an article about a year ago...
http://www.create-games.com/article.asp?id=1869

 
n/a

erghhhhx



Registered
  15/11/2007
Points
  311

Mushroom
12th October, 2008 at 16:39:06 -

Thank you very much!


Sorry for not searching articles first.. ..Didn't think of it.


EDIT: Since this is a platform game (where the char destroys tiles), I hope I can make it render faster.. ..somehow.

Image Edited by the Author.

 
n/a

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1970

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
12th October, 2008 at 18:38:39 -

You render the whole scene at the start of the frame - you can do the exact same thing but using fastloops to make it quicker. If you need to change a tile during the game, you only need to modify that tile and the other 8 directly surrounding it.

If you only have one type of background then you don't need an array. You can just use a collision mask / detector.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click