User Tag List

Page 2 of 2 FirstFirst 1 2
Results 11 to 18 of 18

Thread: How to generate a random topdown RPG level (with tiles)

  1. #11
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export Module
    Konidias's Avatar
    Join Date
    Aug 2009
    Posts
    1,546
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Bigfoot View Post
    I did something like that quite a while ago.

    Heres the file Attachment 7170
    That's awesome... pretty much exactly what I was thinking of. Good example

  2. #12
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Nov 2011
    Posts
    63
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Awesome example! But I am still not sure if I should use this or go for background objects. How performant are 1000+ backdrop tiles?

    Also I am still not sure how to make paths only related to an Array which tells me if there is a path or a wall or a grass tile...

  3. #13
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export Module
    Konidias's Avatar
    Join Date
    Aug 2009
    Posts
    1,546
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    You're going to be awfully limited with background objects I would think. The example is exactly what you need.

    Not sure what you're asking with the "related to an Array" comment.

  4. #14
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,393
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    I disagree.
    If you're using standard or HWA runtimes, 1000 backdrop objects is *nothing* (1024 tiles = 32x32, which is tiny) - it won't affect performance in the slightest.
    Using backdrop objects will be much simpler and easier in every way - especially when it comes to handling events offscreen.
    I would certainly go with backdrop objects.

  5. #15
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Nov 2011
    Posts
    63
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    @ Konidias
    Like MuddyMole said, in my game there are a lot of offscreen events and NPCs doint their thing. If one NPC need to walk from point A to B and its completely offscreen, I am not sure how I should do it at the moment. with backdrops, I can make them an obstacle and have collisions. without I have to rely on the array where the tiles are stored and somehow make a custom array based movement.

  6. #16
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export Module
    Konidias's Avatar
    Join Date
    Aug 2009
    Posts
    1,546
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Okay then. Now tell me how you're going to randomly generate backdrops. Because you can't create them at runtime and they aren't meant to be objects that you can modify and work with at runtime.

  7. #17
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,393
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    Of course you can create them at runtime. You just store all the tile images as animation frames in an active object, and then use the "add to backdrop" action to create backdrop objects (and if you need to remove them at runtime, there's an action to "delete created backdrops at..." too).

  8. #18
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export Module
    Konidias's Avatar
    Join Date
    Aug 2009
    Posts
    1,546
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Ah for some reason I was only thinking there was a paste to backdrop option

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. Generate a random number
    By LemonyLime in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 11th May 2012, 03:37 PM
  2. Generate random number between -n and +n
    By Boba Fonts in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 30th January 2010, 08:21 PM
  3. generate random terrain (for chrilley)
    By Tisnart in forum File Archive
    Replies: 0
    Last Post: 2nd January 2010, 04:52 PM
  4. generate random number
    By Shawn in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 1st December 2009, 03:36 AM
  5. Externally-stored tiles for level editing
    By DavidN in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 27th January 2007, 01:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •