User Tag List

Results 1 to 7 of 7

Thread: A top-down pick up, carry and throw engine prob

  1. #1
    Clicker Fusion 2.5 (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Nov 2007
    Posts
    456
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    A top-down pick up, carry and throw engine prob

    Hey. Basically, I'm working on a game, where you can pick up objects, carry them around, and throw them. Much like picking up and throwing vases/rocks etc in the 2D Zelda games. It works fine, except for one problem I'm having trouble removing. Essentially, if the player overlaps 2 objects and presses space to pick up, both objects are picked up. I don't know how to get rid of this glitch, as there are multiple copies of the same object (so I can't tell it to pick up one and ignore the other, or at least, I don't know how to).
    I'd attach the mfa file, but I don't know how to...

  2. #2
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: A top-down pick up, carry and throw engine prob

    Hi Raylax. Use "Pick one of your Objects randomly"" for the same ojects over lapping.

    Marvin
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  3. #3
    Clicker Fusion 2.5 (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Nov 2007
    Posts
    456
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: A top-down pick up, carry and throw engine pro

    Woo! Fixed =D

    Thanks a lot for the help ^_^

    Edit: Heh, new problem. I now have different objects for different boxes, all grouped by a qualifier (obviously so I don't have to remake the code for 3 different objects :P ). And the glitch returns if the boxes are different objects that are being overlapped...

  4. #4
    Clicker Fusion 2.5 (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Nov 2007
    Posts
    456
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: A top-down pick up, carry and throw engine pro

    Can anyone help with this? Read edit in above post. Cheers.

  5. #5
    No Products Registered

    Join Date
    Jun 2006
    Posts
    302
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: A top-down pick up, carry and throw engine pro

    how do you define if an object is being carried?

    you should when picking up an object save its fixed value in the player. And only the object with the fixed value of the players carrying value should be carried.

    I suspect that you right now have a value on the box that defines if its being carried, do it the other way around!

  6. #6
    Clicker Fusion 2.5 (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Nov 2007
    Posts
    456
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: A top-down pick up, carry and throw engine pro

    Nope, it's the character that has the value for whether a box is being carried or not. The only value the box has is how heavy it is, which currently plays no part in the coding (haven't got to that bit yet =P )

  7. #7
    No Products Registered

    Join Date
    Jan 2008
    Posts
    146
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: A top-down pick up, carry and throw engine pro

    Can't you just apply nivram's solution to the qualifier group?

Similar Threads

  1. Carry over counter value....
    By KLiK-iT in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 10th March 2012, 11:52 PM
  2. Quick Grab/Throw engine
    By Watermelon786 in forum File Archive
    Replies: 0
    Last Post: 20th November 2010, 03:40 AM
  3. Castlevania Axe Throw example by Sketchy
    By Atherton in forum File Archive
    Replies: 1
    Last Post: 14th November 2009, 01:39 AM
  4. Throw Active Example for Atom
    By Jaffob in forum File Archive
    Replies: 5
    Last Post: 6th November 2008, 08:18 AM
  5. Pick up and throw?
    By Zambaku in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 5th June 2008, 05:00 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
  •