User Tag List

Results 1 to 9 of 9

Thread: Problems with placing walls

  1. #1
    Clicker Multimedia Fusion 2
    MangoMan's Avatar
    Join Date
    Oct 2011
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Problems with placing walls

    So I'm working on a top-down shooter, and while the player is pressing shift, it creates a wall if the player is not overlapping another wall, so that walls can't be on top of each other. That's what I'm trying to do, but it's not working. For confirmation, here's what I tried:

    I made an event making sure the player is not overlapping a wall while shift is pressed.
    I made an action for that event that creates a wall at the player's position.

    It only works when I take away the overlapping part of the event, but then the player is constantly making walls while shift is pressed, which looks ugly. Any help please?

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,367
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    It works for me.

    * Repeat while shift is pressed
    + [Negate] Player is overlapping Wall
    - Create Wall at 0,0 from Player

  3. #3
    Clicker Multimedia Fusion 2
    MangoMan's Avatar
    Join Date
    Oct 2011
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmmm... That's pretty much what mine looks like, I just have a couple other events inserted, but it doesn't create a wall no matter what. Any idea why it's not working for me?

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    KLiK-iT's Avatar
    Join Date
    Sep 2011
    Location
    New Jersey
    Posts
    2,852
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Popcorn, That's what I would have done too. Can you post your example for MangoMan. Maybe there's something missing in his code.

  5. #5
    Clicker Multimedia Fusion 2
    MangoMan's Avatar
    Join Date
    Oct 2011
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do you want to see my game? I can attach it. Here (this is my first posted attachment so forgive me if I did it wrong). Line 3 is the problem.

    Topshoot.mfa

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    KLiK-iT's Avatar
    Join Date
    Sep 2011
    Location
    New Jersey
    Posts
    2,852
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    MangoMAn,..I looked at your game and what are you looking to do with it. I did read you first post but really don't understand what you're looking to do. Nothing seems to be working,.well the movement of the ship is and shooting the object,.but as for creating your walls it isn't working at all from me. Even if I disable line # 3. Maybe we can come up with something else to get this done.

  7. #7
    Clicker Multimedia Fusion 2
    MangoMan's Avatar
    Join Date
    Oct 2011
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's pretty much going to mostly be a two player game, and both players can set up walls to give themselves cover from the other player, and to protect their generators, which give more energy. Energy is used to shoot, place walls, and place generators. The first player uses Q and E to change weapons or structures. Shift shoots or places the structure that is selected. So it's kind of a strategy/action game.
    Back to the walls problem. I want it to be more easy for the player to lay walls by holding shift and moving. For example, if the player moves from top to bottom of the screen, walls are laid behind him as he moves, eventually creating a column of walls.
    As of now (if I take away the overlapping event), if the player holds shift to make walls, he runs out of resources too fast, and like I said, it looks ugly.

    I hope you understand my problem better now and you can help me out more.

  8. #8
    Clicker Multimedia Fusion 2
    MangoMan's Avatar
    Join Date
    Oct 2011
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Never mind, I figured out that it works to see if the wall is not overlapping the player instead of if the player is overlapping the wall. Thanks for your effort!

  9. #9
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    KLiK-iT's Avatar
    Join Date
    Sep 2011
    Location
    New Jersey
    Posts
    2,852
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Oh good, I'm glad ya got it! Good luck with the game..

Similar Threads

  1. Placing teleporters / Referencing objects
    By endlessloop in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 22nd August 2011, 07:13 AM
  2. Placing objects with the mouse
    By Rabagast in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 19th September 2008, 05:33 AM
  3. Placing an ID on Counter Objects
    By ZayLong in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 29th August 2008, 01:26 AM
  4. W's best: hiding, destroying or placing offscreen?
    By RayMarble in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 24th August 2008, 04:55 PM
  5. Placing objects in front
    By kmarshall in forum The Games Factory 2 - Technical Support
    Replies: 1
    Last Post: 11th June 2007, 06:01 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
  •