Jump to content


Photo
* * * * * 1 votes

Auto Tile Your Walls By Nocturne


  • Please log in to reply
67 replies to this topic

#21 Nocturne

Nocturne

    Nocturne Games

  • Administrators
  • 16818 posts
  • Version:GM:Studio

Posted 01 March 2009 - 07:28 AM

If you want to try another version, see two posts above as there is one by mice for platform games... Mine is basically a top down only version (although I suppose if you did a bit of work and counting it will work for a platform game...)
  • 0

#22 Desert Dog

Desert Dog

    GMC Member

  • Global Moderators
  • 6409 posts
  • Version:Unknown

Posted 04 March 2009 - 03:25 AM

Pretty cool. I don't really see myself using it much, though.

Thanks for writing Mark13673,

~DD
  • 0

#23 D4tW

D4tW

    GMC Member

  • New Member
  • 4 posts

Posted 26 March 2009 - 03:08 AM

Very cool and totally useful. There are a few examples out there like this one but yours is easier to adapt quickly...Already using it in my game! Went with the sprite route. Mainly so I don't have to mess with the tile depth, the wall object was set were I needed. Used this in a TDS game but could totally see the usefulness this would serve in a platform type game, too. Thanx!
  • 0

#24 Nocturne

Nocturne

    Nocturne Games

  • Administrators
  • 16818 posts
  • Version:GM:Studio

Posted 26 March 2009 - 07:00 AM

Thanks you two for the nice comments! That makes 200 downloads!!!! :(
  • 0

#25 reigalius

reigalius

    Generally Awesome

  • New Member
  • 1170 posts

Posted 29 March 2009 - 07:40 PM

Looks really nice. I will definitely use.
  • 0

#26 Lukearentz

Lukearentz

    My Two Cents

  • New Member
  • 2587 posts

Posted 31 March 2009 - 09:26 AM

I can't see the download link?
  • 0

#27 Nocturne

Nocturne

    Nocturne Games

  • Administrators
  • 16818 posts
  • Version:GM:Studio

Posted 31 March 2009 - 09:33 AM

The blue box in the first post is the download...
  • 0

#28 Lukearentz

Lukearentz

    My Two Cents

  • New Member
  • 2587 posts

Posted 31 March 2009 - 09:41 AM

Weird, that box wasn't there before. Unusual... Ok Thanks :P
  • 0

#29 Nelliosis

Nelliosis

    GMC Member

  • New Member
  • 100 posts

Posted 21 April 2009 - 01:07 AM

it looks like you took an idea off someone else. i remember a member of this forum called mice, he/she made an excellent example of this a while ago. and it wasn't specific to one view. it worked for all views. and it could be called from a simple script as well.

very handy i used it all the time when creating games for small school and tafe projects. very handy.this is just a cheap version of that though. sorry if i sound mean. but its what i think, can't help that.


Do you know the location of this example by any chance?
  • 0

#30 Nocturne

Nocturne

    Nocturne Games

  • Administrators
  • 16818 posts
  • Version:GM:Studio

Posted 13 December 2009 - 01:09 PM

BUMP!
  • 0

#31 Pixelmite

Pixelmite

    Grey Gamer

  • New Member
  • 76 posts

Posted 05 January 2010 - 04:41 PM

Sorry for the noob question, but how do you use your own images for this? I don't want to use the ones you gave (not that there not good ^^)

Nice script, can you use this for platformers?
  • 0

#32 Nocturne

Nocturne

    Nocturne Games

  • Administrators
  • 16818 posts
  • Version:GM:Studio

Posted 05 January 2010 - 07:08 PM

This canīt be used for platformers without some serious tweaking of the tilesets... But if you look a few posts up (no.18) there is a link to a platformer auto-tile that is very good... As for using your own images, you have to draw them in some other program (Gimp, Photoshop, Paint etc...) using the template I supplied...

Oh and thanks for downloading!
  • 0

#33 Drum

Drum

    GMC Member

  • New Member
  • 53 posts

Posted 07 February 2010 - 05:13 AM

This is a glorious example, nice work. I have a question though: Is there a non-complicated way of fixing it so that certain corner objects would be understood by GM to be slopes? Like, if I just changed all the graphics of the corner tiles to fill only a half of the object and set collisions to precise, would it still be using the underlying block to detect collisions, or the tile that's covering it? If not, can anybody think of a way to tweak it so can get this to work?
I figure this will be the perfect way of inserting slopes into my procedurally generated level builder without a more complicated algorithm.
Thanks a lot!
  • 0

#34 Nocturne

Nocturne

    Nocturne Games

  • Administrators
  • 16818 posts
  • Version:GM:Studio

Posted 07 February 2010 - 07:35 AM

This is a glorious example, nice work. I have a question though: Is there a non-complicated way of fixing it so that certain corner objects would be understood by GM to be slopes? Like, if I just changed all the graphics of the corner tiles to fill only a half of the object and set collisions to precise, would it still be using the underlying block to detect collisions, or the tile that's covering it? If not, can anybody think of a way to tweak it so can get this to work?
I figure this will be the perfect way of inserting slopes into my procedurally generated level builder without a more complicated algorithm.
Thanks a lot!


Just change the tile method for the sprite method... So, instead of adding a tile you delete all the code and use the script to define a sprite_index. For an example of this, check out the "Roofing Buildings" example in my sig as the the Autowall object uses sprites... And with precise collision detection I see no reason why this should not work as you suggest!

Oh, and thank you for the kind comment and for downloading!!!
  • 0

#35 Drum

Drum

    GMC Member

  • New Member
  • 53 posts

Posted 07 February 2010 - 08:56 AM

I'm just reading your notation in the AutoTile wall object code and you actually put instructions for how to switch from tiles to sprites in there. So great.
If I'm reading this correctly, I just name the appropriate sprites to numbers '38' not 'wall_38' and this code will work as-is.

EDIT: Woo, I just discovered subimages (can you tell I'm a newbie?) - this is making sense now. I deleted the roof tiles from your TDS building example and spammed the wall objects everywhere - guess all I need to do to tell if this is going to work is give the appropriate corner wall sprites a shave and maybe toss in a platformer character to try it out. Majestic, thanks a billion.

I gotta say, I think you've been too humble here - mice's platformer example is nice, but I'm making a platformer and your example was much better suited to my personal needs (and had really helpful notation). I guess it's all context, really.
  • 0

#36 Nocturne

Nocturne

    Nocturne Games

  • Administrators
  • 16818 posts
  • Version:GM:Studio

Posted 07 February 2010 - 09:02 AM

Aww, shucks... Thanks for the compliment! Yes I know that I put instructions into the example, but I thought that maybe it would be better to see it working in an example, which is why I suggested the Roof tutorial... Oh, and if you get it to work as a platform engine, please PM me a link to the WIP or finished game so I can add it to the original post as an example of what can be done!

Edited by Mark13673, 07 February 2010 - 09:03 AM.

  • 0

#37 Drum

Drum

    GMC Member

  • New Member
  • 53 posts

Posted 07 February 2010 - 09:55 AM

Aww, shucks... Thanks for the compliment! Yes I know that I put instructions into the example, but I thought that maybe it would be better to see it working in an example, which is why I suggested the Roof tutorial... Oh, and if you get it to work as a platform engine, please PM me a link to the WIP or finished game so I can add it to the original post as an example of what can be done!


Oh, I'm glad you referred me to the roof tut - there's no way I would have actually understood that code if you hadn't. I was just trying to get across how complete the Autotile example is.

It might take me a little while to actually get a decent example up, but I just now modified the roof example in a slapdash way (I had to adjust the alpha channel - I guess that means I suck at erasing) and it works wonderfully with the default player object - those are some sloping corner sprites alright. You could probably even make some more sprites that would create a more gradual slope when placed adjacently as well, but I think that may be beyond my meagre ability (though I guess I could give it a try!).
Give me up to a couple of days to do it properly and I'll give you an example you can post. I'll maybe make the tiles destructible so people can see how the tile generator works in realtime (I guess all I'd need to do is put the code in the step event, right? Or would that be too slow or something?).

Edited by Drum, 07 February 2010 - 10:23 AM.

  • 0

#38 AKSuperNewb

AKSuperNewb

    GMC Member

  • GMC Member
  • 140 posts

Posted 06 March 2010 - 06:10 AM

This is sooo nice. You've already seen my game, MageQuest (You don't mind if I put a link here, right <_<), and this makes it SOOOOOO much easier than I was thinking. I really was dreading the thought of making the cities and fixing the dungeons, etc. Thank You!!!!
  • 0

#39 Devilfromhost12

Devilfromhost12

    GMC Member

  • GMC Member
  • 735 posts

Posted 07 March 2010 - 04:38 PM

Cool. This will help me. Thank you.
  • 0

#40 Αnt

Αnt

    GMC Member

  • GMC Member
  • 52 posts
  • Version:GM:Studio

Posted 01 September 2010 - 09:13 AM

What an absolutely stupendous piece of coding! Thanks a bunch Mark, worked a charm and was so easy to implement.

Posted Image
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users