User Tag List

Results 1 to 10 of 10

Thread: LoS / gameboard object

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleFirefly 3D Module

    Join Date
    Oct 2006
    Posts
    138
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    LoS / gameboard object

    I'm tryin to use the advanced gameboard object to achieve a line of sight in my game. I want all squares that aren't behind a wall (obstacle) to be seen. Eg:

    [img:left]http://img248.imageshack.us/img248/9311/67470866.png[/img]

    If that door were to open, the player would be able to see all the squares inside the room. If the player was inside that room and the door was closed, then every other square on the grid wants to be hidden.

    basically, perform a flood fill from the square of the player, everything touched and everything adjacent to something that was touched becomes visible. everything else is hidden.

    i figured the advanced gameboard object was the best thing to use for this?

    If anyone could give me some code tips or whip me up an example that'd be great. Or maybe there's a more effective method?

  2. #2
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: LoS / gameboard object

    Well it's not the advanced game board object you want:

    http://mfa.aquadasoft.com/view/1283809973-rooftops

    It's not perfect but you can see what I'm getting at...

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleFirefly 3D Module

    Join Date
    Oct 2006
    Posts
    138
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: LoS / gameboard object

    Thanks but my levels are generated at runtime from a map txt file and i can't have preset roof shape objects.

  4. #4
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: LoS / gameboard object

    Hm, ok that complicates things!

    I'm not sure what to do!

  5. #5
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleFirefly 3D Module

    Join Date
    Oct 2006
    Posts
    138
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: LoS / gameboard object

    Me neither

  6. #6
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: LoS / gameboard object

    Maybe you could use the Mine Sweeper technique. I made an example in a thread a while back, I'll see if I can find it again...

    EDIT: After a while of searching, I found it:
    http://www.lb-stuff.com/MMF2/Adjacents[2].mfa
    Working as fast as I can on Fusion 3

  7. #7
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleFirefly 3D Module

    Join Date
    Oct 2006
    Posts
    138
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: LoS / gameboard object

    Thanks for your help I tried that method in my game and the tiles disappear too slowly and it wouldn't work for a field of view or line of site effect.

    Sorry to be a pain- I'm not being ungrateful

  8. #8
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: LoS / gameboard object

    Well the idea was to do it in a fastloop until all the tiles had been checked.
    Working as fast as I can on Fusion 3

  9. #9
    Clicker Fusion 2.5 DeveloperSWF Export Module

    Join Date
    Sep 2006
    Posts
    511
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: LoS / gameboard object

    If you just want the affect and don't care how you get it...
    you can always just teleport the player to another part of the screen when the character enters the room.

  10. #10
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: LoS / gameboard object

    I don't think I understand, how does that solve this issue?
    Working as fast as I can on Fusion 3

Similar Threads

  1. advanced gameboard object
    By westray in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 22nd April 2012, 02:36 PM
  2. Advanced Gameboard Object
    By Hazzow in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 22nd November 2011, 07:02 PM
  3. Adv Gameboard Object error
    By AyreGuitar in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 16th August 2011, 09:51 AM
  4. Advanced Gameboard Object - Number of Bricktypes?
    By Tiles in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 17th August 2009, 09:46 AM
  5. Is this possible with advanced gameboard?
    By wargasmic in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 20th December 2006, 05:36 AM

Posting Permissions

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